/* ============================================
   박준서 ❤ 박지원 모바일 청첩장
   Wedding Invitation - Main Stylesheet
   ============================================ */

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

:root {
    /* Backgrounds (Snow White, neutral, no yellow tint) */
    --bg-ivory: #F2F0EB;
    --bg-ivory-dark: #ECEAE5;
    --bg-white: #FFFFFF;
    --bg-page: #F9F9F9;

    /* Accent colors (decor only, NOT for text) */
    --accent-coral: #f4b6a6;
    --accent-yellow: #f6d97a;
    --accent-blue: #b7d7e8;
    /* Unified sage green point color (replaces all bright limes) */
    --accent-lime: #A9C5A0;
    --accent-lime-dark: #8FB386;
    --accent-lime-soft: #C9DCC2;
    --accent-green: #A9C5A0;

    /* Pastel red heart */
    --heart-red: #F2A6A6;
    --heart-red-soft: rgba(242, 166, 166, 0.78);

    /* TEXT colors (dark only for readability) */
    --text-dark: #3b2e23;       /* deep warm brown */
    --text-charcoal: #2d2521;   /* darker text */
    --text-body: #4a3a2c;       /* body text */
    --text-muted: #7a6854;      /* muted text */
    --text-light: #9c8973;

    /* Borders & lines */
    --border-soft: rgba(74, 58, 44, 0.12);
    --border-medium: rgba(74, 58, 44, 0.2);

    /* Shadow */
    --shadow-card: 0 4px 20px rgba(74, 58, 44, 0.08);
    --shadow-soft: 0 2px 10px rgba(74, 58, 44, 0.06);
}

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

body {
    font-family: 'Pretendard', 'Pretendard Variable', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.7;
    letter-spacing: -0.02em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Image save/drag protection (deterrent only) ---------- */
img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Long-press menu cannot trigger when the touch never reaches the <img>.
   Parent elements (.digicam-item, .polaroid-item, #lightboxStage) carry
   the click/swipe handlers, so functionality is preserved. */
.hero-photo,
.polaroid-item img,
.digicam-item img,
.lightbox-img {
    pointer-events: none;
}

/* ---------- Invitation Wrapper ---------- */
.invitation-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-ivory);
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    /* Snow White flat background - completely neutral, no yellow tint */
    background-image:
        radial-gradient(circle at 15% 10%, rgba(244, 182, 166, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 95%, rgba(169, 197, 160, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #FBFBFA 0%, #F9F9F9 50%, #F2F0EB 100%);
    background-attachment: scroll, scroll, scroll;
}

/* Paper grain texture overlay */
.invitation-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

.invitation-wrap > * {
    position: relative;
    z-index: 1;
}

/* Desktop: shadow effect */
@media (min-width: 520px) {
    body {
        padding: 0;
        background:
            radial-gradient(ellipse at top, #ede6d4 0%, #d8d0bc 100%);
    }
    .invitation-wrap {
        box-shadow:
            0 0 40px rgba(74, 58, 44, 0.15),
            0 0 80px rgba(74, 58, 44, 0.08);
    }
}

/* ---------- Common Section ---------- */
section {
    padding: 60px 28px;
    text-align: center;
    position: relative;
}

.section-title {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.section-subtitle-en {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.section-desc {
    font-size: 14.5px;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 24px;
}

/* ---------- Star Divider ---------- */
.star-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 10px;
    letter-spacing: 0.4em;
    position: relative;
}

.star-divider span:nth-child(2) {
    color: var(--accent-lime-dark);
    font-size: 12px;
}

.star-divider::before,
.star-divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-medium), transparent);
}

/* ---------- Fade-in Animation ---------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   1. HERO SECTION - Fullscreen Door Interaction
   ============================================ */
.hero-section {
    padding: 0;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height (mobile browsers) */
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-ivory);
}

/* Door Container - FULLSCREEN */
.door-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    perspective: 1500px;
    user-select: none;
    overflow: hidden;
}

.door-container:focus-visible {
    outline: 2px solid var(--accent-lime-dark);
    outline-offset: -6px;
}

/* Hero photo (behind door) - FULLSCREEN */
.hero-photo-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-ivory-dark);
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease 0.3s, transform 1.6s ease 0.3s;
    z-index: 1;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Subtle overlay on photo for text legibility */
.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(59, 46, 35, 0.35) 0%,
            rgba(59, 46, 35, 0) 30%,
            rgba(59, 46, 35, 0) 55%,
            rgba(59, 46, 35, 0.55) 100%);
    pointer-events: none;
}

/* Hero info shown over photo (when door is open) - TOP placement */
.hero-photo-info {
    position: absolute;
    left: 0;
    right: 0;
    top: 8%;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.9s ease 0.9s, transform 0.9s ease 0.9s;
    z-index: 2;
    pointer-events: none;
}

.hero-photo-eyebrow {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 18px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    font-weight: 700;
}

.hero-photo-info .hero-names {
    color: #fff;
    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.3);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-photo-info .hero-heart {
    color: #fff;
    font-size: 0.6em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-2px);
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4));
}
.hero-photo-info .hero-heart i {
    color: #fff;
}

.hero-date-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    /* Tightened gap between date/separator/weekday for compact reading */
    gap: 6px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    /* Reduced letter-spacing for tighter look */
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-date-num {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hero-date-sep {
    opacity: 0.55;
    margin: 0 -2px;
}

.hero-photo-info .hero-venue {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 9px rgba(0, 0, 0, 0.55);
    font-size: 17px;
    font-weight: 600;
    /* Reduced from 0.06em to keep characters comfortably close */
    letter-spacing: 0.015em;
    line-height: 1.3;
}

/* Door panels - each takes 50% of fullscreen width */
.door-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    background: var(--bg-ivory);
    transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
    backface-visibility: hidden;
    box-shadow: inset 0 0 30px rgba(74, 58, 44, 0.1);
}

.door-panel-left {
    left: 0;
    transform-origin: left center;
    border-right: 1px solid rgba(74, 58, 44, 0.18);
}

.door-panel-right {
    right: 0;
    transform-origin: right center;
}

/* Each door panel contains the full door image, but only shows half */
.door-image-wrap {
    position: absolute;
    top: 0;
    width: 200%;
    height: 100%;
}

.door-panel-left .door-image-wrap {
    left: 0;
}

.door-panel-right .door-image-wrap {
    right: 0;
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-names {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

.hero-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55em;
    color: #fff;
    transform: translateY(-2px);
}
.hero-heart i {
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.hero-venue {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Open state */
.door-container.is-open .door-panel-left {
    transform: translateX(-101%);
}

.door-container.is-open .door-panel-right {
    transform: translateX(101%);
}

.door-container.is-open .hero-photo-wrap {
    opacity: 1;
    transform: scale(1);
}

.door-container.is-open .hero-door-info {
    opacity: 0;
    pointer-events: none;
}

.door-container.is-open .hero-photo-info {
    opacity: 1;
    transform: translateY(0);
}

.door-container.is-open .door-hint {
    opacity: 0;
    pointer-events: none;
}

/* Door hint */
.door-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(253, 251, 246, 0.96);
    color: var(--text-dark);
    padding: 12px 22px;
    border-radius: 30px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    animation: gentlePulse 2.2s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(74, 58, 44, 0.2);
    transition: opacity 0.4s;
    white-space: nowrap;
}

.door-hint i {
    color: var(--accent-coral);
}

@keyframes gentlePulse {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* Scroll Indicator - appears after door opens */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    z-index: 5;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease 1.2s;
    animation: bounceDown 2s ease-in-out infinite;
}

.hero-section.is-door-open .scroll-indicator {
    opacity: 1;
    pointer-events: auto;
}

.scroll-indicator-text {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.scroll-indicator i {
    font-size: 14px;
}

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

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

/* ============================================
   2. INVITATION CARD
   ============================================ */
.invitation-section {
    padding: 70px 28px;
}

.section-stars-top,
.section-stars-bottom {
    color: var(--accent-lime-dark);
    font-size: 14px;
    letter-spacing: 0.3em;
    margin: 10px 0;
}

.invitation-card {
    padding: 10px 0;
    max-width: 380px;
    margin: 0 auto;
}

.invitation-parents {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 2;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.highlight-text {
    color: var(--text-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-lime);
    padding: 0 2px;
}

.invitation-divider {
    color: var(--accent-lime-dark);
    font-size: 16px;
    margin: 28px 0;
    letter-spacing: 0.3em;
}

.invitation-body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text-body);
    line-height: 2.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.invitation-signature {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 800;
    margin-top: 32px;
    letter-spacing: -0.01em;
}

/* ============================================
   3. CONTACT SECTION
   ============================================ */
.contact-section .lime-button {
    margin-top: 20px;
}

/* Lime Button (shared) */
.lime-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 14px 28px;
    background: var(--accent-lime);
    color: var(--text-dark);
    border: none;
    border-radius: 40px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(169, 197, 160, 0.45);
    letter-spacing: -0.01em;
}

.lime-button:hover,
.lime-button:focus-visible {
    background: var(--accent-lime-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 213, 114, 0.6);
    outline: none;
}

.lime-button:active {
    transform: translateY(0);
    background: var(--accent-lime-dark);
}

.lime-button-large {
    padding: 16px 32px;
    font-size: 15.5px;
    min-width: 260px;
}

/* ============================================
   4. GALLERY (Polaroid + Digital Camera)
   ============================================ */
.gallery-section {
    padding: 60px 0;
}

.gallery-section .section-title,
.gallery-section .section-subtitle-en {
    padding: 0 28px;
}

.gallery-subhead {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    padding: 7px 16px 7px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    margin: 24px 0 18px;
    box-shadow: var(--shadow-soft);
}

.gallery-subhead-icon {
    font-size: 14px;
}

.gallery-spacer {
    text-align: center;
    color: var(--accent-lime-dark);
    font-size: 12px;
    letter-spacing: 0.4em;
    padding: 30px 0 10px;
}

/* ----- 4-A. POLAROID COLLAGE ----- */
.polaroid-section {
    padding: 0 18px;
    text-align: center;
}

.polaroid-collage {
    position: relative;
    margin: 0 auto;
    padding: 24px 0 32px;
    max-width: 460px;
}

.polaroid-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    gap: 14px;             /* breathing room between polaroids */
    margin-bottom: 22px;   /* spacious vertical rhythm */
}

.polaroid-row-1 { margin-bottom: 26px; }
.polaroid-row-2 { margin-bottom: 30px; }
.polaroid-row-3 { margin-bottom: 0; gap: 14px; }

/* Polaroid item base */
.polaroid-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    /* base transform stored in CSS variables so JS scroll-scale can compose */
    --base-rotate: 0deg;
    --base-tx: 0px;
    --base-ty: 0px;
    --hover-scale: 1;
    --hover-rotate: 0deg;
    transform: translate(var(--base-tx), var(--base-ty))
               rotate(calc(var(--base-rotate) + var(--hover-rotate)))
               scale(var(--hover-scale));
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                z-index 0s;
    transform-origin: center center;
    will-change: transform;
    outline: none;
}

.polaroid-item:focus-visible {
    outline: 2px solid var(--accent-lime-dark);
    outline-offset: 4px;
    border-radius: 6px;
}

.polaroid-frame {
    position: relative;
    background: #ffffff;
    padding: 10px 10px 36px;
    border-radius: 3px;
    box-shadow:
        0 8px 20px rgba(60, 50, 40, 0.16),
        0 2px 6px rgba(60, 50, 40, 0.09),
        inset 0 0 0 1px rgba(0, 0, 0, 0.02);
    width: 100%;
    height: 100%;
    display: block;
}

.polaroid-frame img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #ddd;
    border-radius: 1px;
}

/* Center-of-viewport active row: 1.2x + irregular small rotation (set per-item in JS via --hover-rotate) */
.polaroid-item.is-center-active {
    --hover-scale: 1.2;
    z-index: 30 !important;
}

.polaroid-item.is-center-active .polaroid-frame {
    box-shadow:
        0 16px 32px rgba(60, 50, 40, 0.28),
        0 4px 10px rgba(60, 50, 40, 0.16);
}

/* Hover/focus/click: emphasize and bring to front */
.polaroid-item:hover,
.polaroid-item:focus-visible,
.polaroid-item:active {
    --hover-scale: 1.22;
    z-index: 50 !important;
}

.polaroid-item:hover .polaroid-frame,
.polaroid-item:focus-visible .polaroid-frame,
.polaroid-item:active .polaroid-frame {
    box-shadow:
        0 18px 36px rgba(60, 50, 40, 0.32),
        0 4px 10px rgba(60, 50, 40, 0.18);
}

/* ----- Polaroid sizes & irregular positions (collage layout) ----- */
/* Row 1: 3 photos — slight up/down stagger */
.p-pos-1 {
    width: 30%;
    --base-rotate: -4deg;
    --base-tx: -2px;
    --base-ty: 6px;
    z-index: 3;
}
.p-pos-2 {
    width: 33%;
    --base-rotate: 2.5deg;
    --base-tx: 0px;
    --base-ty: -8px;
    z-index: 5;
}
.p-pos-3 {
    width: 30%;
    --base-rotate: -2deg;
    --base-tx: 4px;
    --base-ty: 12px;
    z-index: 4;
}

/* Row 2: 3 photos */
.p-pos-4 {
    width: 32%;
    --base-rotate: 3deg;
    --base-tx: -4px;
    --base-ty: -6px;
    z-index: 4;
}
.p-pos-5 {
    width: 30%;
    --base-rotate: -2.5deg;
    --base-tx: 2px;
    --base-ty: 10px;
    z-index: 6;
}
.p-pos-6 {
    width: 33%;
    --base-rotate: 4deg;
    --base-tx: 6px;
    --base-ty: -4px;
    z-index: 5;
}

/* Row 3: 3 photos — same size scale as Row 1 & Row 2 */
.p-pos-7 {
    width: 30%;
    --base-rotate: -3deg;
    --base-tx: -3px;
    --base-ty: 8px;
    z-index: 4;
}
.p-pos-8 {
    width: 33%;
    --base-rotate: 2.5deg;
    --base-tx: 0px;
    --base-ty: -6px;
    z-index: 6;
}
.p-pos-9 {
    width: 30%;
    --base-rotate: -2deg;
    --base-tx: 4px;
    --base-ty: 12px;
    z-index: 5;
}

/* ============================================
   ★ TASK 4: Polaroid caption ON TOP of masking tape
   (text inscribed on torn paper-tape with pinking-shear edges)
   ============================================ */
.polaroid-caption {
    /* Now an inline-block "tape" containing the handwritten text */
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) rotate(-1.5deg);
    text-align: center;
    font-family: 'Caveat', 'Pretendard', cursive;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
    color: rgba(45, 35, 28, 0.85);
    letter-spacing: 0.01em;
    pointer-events: none;
    white-space: nowrap;

    /* Masking tape look — soft pale cream (NO stripes), ~50% lighter */
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
        linear-gradient(180deg,
            #f7eedb 0%,
            #f1e5cf 50%,
            #ebdcbf 100%);

    padding: 5px 14px 5px;
    /* Pinking-shear (zigzag) edges via SVG mask — both left & right sides */
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'><path d='M3,0 L100,0 L100,20 L3,20 L0,17 L3,14 L0,11 L3,8 L0,5 L3,2 Z M97,0 L97,2 L100,5 L97,8 L100,11 L97,14 L100,17 L97,20 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'><path d='M3,0 L100,0 L100,20 L3,20 L0,17 L3,14 L0,11 L3,8 L0,5 L3,2 Z M97,0 L97,2 L100,5 L97,8 L100,11 L97,14 L100,17 L97,20 Z' fill='black'/></svg>");
            mask-size: 100% 100%;
            mask-repeat: no-repeat;
            mask-position: center;
    z-index: 2;

    /* Subtle paper texture via noise-like inset shadow */
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(74, 58, 44, 0.18);

    /* Pinking edge cleanup: ensure background looks right behind mask */
    background-blend-mode: multiply;
}

.polaroid-item:nth-child(odd) .polaroid-caption { transform: translateX(-50%) rotate(-2deg); }
.polaroid-item:nth-child(even) .polaroid-caption { transform: translateX(-50%) rotate(1.5deg); }
.polaroid-item:nth-child(3n) .polaroid-caption { transform: translateX(-50%) rotate(-2.5deg); }

/* Polaroid section hint (eyecatcher under subhead) */
.polaroid-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 4px 0 6px;
}
.polaroid-hint i {
    color: var(--accent-coral);
    margin-right: 4px;
}

/* ----- 4-B. GALLERY (large horizontal carousel) ----- */
.digicam-section {
    margin-top: 12px;
    padding-top: 16px;
}

.digicam-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    /* Take roughly half of mobile viewport height */
    height: 52vh;
    min-height: 360px;
    max-height: 560px;
    padding: 22px 0 26px;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.digicam-carousel::-webkit-scrollbar {
    display: none;
}

.digicam-carousel:active {
    cursor: grabbing;
}

.digicam-track {
    display: flex;
    gap: 16px;
    padding: 0 28px;
    height: 100%;
    align-items: center;
}

.digicam-item {
    flex: 0 0 auto;
    /* Make each card fill most of the section height */
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-ivory-dark);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
    position: relative;
}

.digicam-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(74, 58, 44, 0.2);
}

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

.digicam-item.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    background: repeating-linear-gradient(
        135deg,
        rgba(74, 58, 44, 0.04),
        rgba(74, 58, 44, 0.04) 10px,
        transparent 10px,
        transparent 20px
    ), var(--bg-white);
    border: 1px dashed var(--border-medium);
    flex-direction: column;
    gap: 4px;
}

.digicam-item.is-placeholder i {
    font-size: 22px;
    opacity: 0.4;
}

/* Custom Scrollbar */
.digicam-scrollbar {
    margin: 0 auto 14px;
    padding: 0 28px;
    max-width: 480px;
}

.digicam-scrollbar-track {
    height: 5px;
    background: var(--border-soft);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.digicam-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--accent-lime-dark);
    border-radius: 3px;
    transition: background 0.2s;
}

.digicam-scrollbar-thumb:hover,
.digicam-scrollbar-thumb.is-dragging {
    background: var(--text-dark);
}

.digicam-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.digicam-hint i {
    color: var(--accent-coral);
    margin-right: 4px;
}

/* ----- LIGHTBOX MODAL ----- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 14, 0.94);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-stage {
    max-width: 92vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.25s ease;
    opacity: 0;
}

.lightbox-overlay.is-active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-img.is-changing {
    opacity: 0;
    transform: scale(0.96);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 360px) {
    .polaroid-row { margin-bottom: -28px !important; }
    .polaroid-row-3 { margin-bottom: 0 !important; }
}

/* ============================================
   5. DATE & COUNTDOWN
   ============================================ */
.date-display {
    margin: 20px auto 36px;
    max-width: 320px;
}

.date-month {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.date-big {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border-medium);
    border-bottom: 1px solid var(--border-medium);
}

.date-day-label,
.date-time-label {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    min-width: 50px;
}

.date-number {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.date-full {
    margin-top: 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-body);
    letter-spacing: -0.01em;
}

/* Calendar Widget */
.calendar-widget {
    max-width: 320px;
    margin: 0 auto 40px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
}

.calendar-header {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 12px;
}

.calendar-title {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-body);
    border-radius: 50%;
    position: relative;
}

.calendar-cell.head {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    aspect-ratio: auto;
    padding: 4px 0 8px;
    letter-spacing: 0.05em;
}

.calendar-cell.sun {
    color: #b85450;
}

.calendar-cell.sat {
    color: #4a7ab8;
}

.calendar-cell.empty {
    visibility: hidden;
}

.calendar-cell.wedding-day {
    background: transparent;
    color: #fff;
    font-weight: 800;
    position: relative;
    z-index: 1;
    animation: weddingHeartPulse 1.8s ease-in-out infinite;
    overflow: visible;
}

/* True small heart shape using SVG background */
.calendar-cell.wedding-day::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'><path d='M16 28 C 4 20, 0 12, 0 7.5 C 0 3.5, 3 0, 7.5 0 C 11 0, 14 2, 16 5 C 18 2, 21 0, 24.5 0 C 29 0, 32 3.5, 32 7.5 C 32 12, 28 20, 16 28 Z' fill='%23F2A6A6' fill-opacity='0.78'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    z-index: -1;
    filter: drop-shadow(0 2px 4px rgba(242, 166, 166, 0.35));
}

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

/* Countdown */
.countdown-wrap {
    max-width: 360px;
    margin: 0 auto;
}

.countdown-message {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.couple-name {
    font-weight: 800;
}

.heart-emoji {
    color: var(--heart-red);
    font-size: 14px;
    margin: 0 2px;
}

.countdown-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    margin: 0 4px;
    position: relative;
    vertical-align: middle;
    z-index: 1;
    padding-bottom: 4px;
}

/* True small heart shape using SVG */
.countdown-days::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'><path d='M16 28 C 4 20, 0 12, 0 7.5 C 0 3.5, 3 0, 7.5 0 C 11 0, 14 2, 16 5 C 18 2, 21 0, 24.5 0 C 29 0, 32 3.5, 32 7.5 C 32 12, 28 20, 16 28 Z' fill='%23F2A6A6' fill-opacity='0.78'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    z-index: -1;
    filter: drop-shadow(0 3px 6px rgba(242, 166, 166, 0.35));
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.countdown-box {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-soft);
}

.countdown-num {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ============================================
   6. LOCATION
   ============================================ */
.location-info {
    margin-bottom: 22px;
}

.location-name {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.location-address {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    letter-spacing: -0.01em;
}

.map-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    border: 1px solid var(--border-soft);
}

.map-wrap iframe {
    display: block;
}

.nav-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.nav-buttons-grid.nav-buttons-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--accent-lime);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(169, 197, 160, 0.4);
}

.nav-btn i {
    font-size: 18px;
}

.nav-btn:hover,
.nav-btn:active {
    background: var(--accent-lime-dark);
    transform: translateY(-2px);
}

.transport-info {
    text-align: left;
    background: var(--bg-white);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.transport-block {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.transport-block:last-child {
    border-bottom: none;
}

.transport-block:first-child {
    padding-top: 0;
}

.transport-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.transport-head i {
    color: var(--accent-lime-dark);
    background: var(--accent-lime-soft);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.transport-body {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.9;
    padding-left: 4px;
    letter-spacing: -0.01em;
}

.line-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-right: 4px;
    margin-bottom: 4px;
}

.line-1 { background: #0052a4; }
.line-g { background: #77c4a3; }

.bus-label {
    display: inline-block;
    padding: 1px 8px;
    background: var(--accent-lime-soft);
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

/* ============================================
   7. VENUE INFO
   ============================================ */
.venue-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 10px 24px;
    box-shadow: var(--shadow-card);
    text-align: left;
    border: 1px solid var(--border-soft);
}

.venue-item {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--border-soft);
}

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

.venue-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-lime-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
}

.venue-content {
    flex: 1;
}

.venue-content h3 {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.venue-content p {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.75;
    letter-spacing: -0.01em;
}

.venue-content strong {
    color: var(--text-dark);
    font-weight: 800;
}

/* ============================================
   8. ACCOUNT (Accordion)
   ============================================ */
.accordion {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-dark);
    font-family: inherit;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--accent-lime-soft);
}

.accordion-side-label {
    background: var(--accent-lime);
    color: var(--text-dark);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.accordion-names {
    flex: 1;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.accordion-arrow {
    color: var(--text-muted);
    transition: transform 0.3s;
    font-size: 14px;
}

.accordion-item.is-open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.is-open .accordion-content {
    max-height: 500px;
}

.account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px dashed var(--border-soft);
    flex-wrap: wrap;
}

.account-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 70px;
}

.account-role strong {
    color: var(--text-dark);
    font-weight: 800;
    margin-left: 2px;
}

.account-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.account-bank {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.account-number {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.account-placeholder {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.copy-btn {
    flex-shrink: 0;
    padding: 7px 12px;
    background: var(--accent-lime);
    color: var(--text-dark);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.copy-btn:hover,
.copy-btn:active {
    background: var(--accent-lime-dark);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: var(--text-dark);
    color: var(--accent-lime);
}

.copy-btn-disabled {
    background: var(--border-soft);
    color: var(--text-light);
    cursor: not-allowed;
}

.copy-btn-disabled:hover {
    background: var(--border-soft);
    transform: none;
}

/* ============================================
   9. RSVP (Bottom Sheet)
   ============================================ */
.rsvp-section .lime-button-large {
    margin-top: 20px;
}

/* ============================================
   10. GUESTBOOK
   ============================================ */
.guestbook-form {
    max-width: 420px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.3s;
    resize: vertical;
    letter-spacing: -0.01em;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-lime-dark);
    box-shadow: 0 0 0 3px rgba(169, 197, 160, 0.35);
}

.form-input.is-error,
.form-textarea.is-error {
    border-color: #d98478;
    box-shadow: 0 0 0 3px rgba(217, 132, 120, 0.2);
}

.form-input.is-success,
.form-textarea.is-success {
    border-color: var(--accent-lime-dark);
}

.guestbook-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
    align-items: flex-start;
}

.guestbook-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guestbook-card {
    /* Vintage off-white notebook paper */
    --line-color: rgba(220, 50, 50, 0.20);
    --line-height: 28px;
    background-color: #FDFBF7;
    background-image:
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent calc(var(--line-height) - 1px),
            var(--line-color) calc(var(--line-height) - 1px),
            var(--line-color) var(--line-height)
        );
    background-size: 100% var(--line-height);
    background-position: 0 14px; /* align lines beneath the first text baseline */
    padding: 14px 16px 18px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(74, 58, 44, 0.10);
    position: relative;
    text-align: left;
    color: #3b2e23;
    transform: rotate(var(--rotate, -1deg));
    transition: transform 0.3s;
    animation: cardPop 0.5s ease-out;
    word-break: keep-all;
    overflow-wrap: break-word;
    border: 1px solid rgba(74, 58, 44, 0.06);
}

/* Sequential line-color rotation: red → blue → green → yellow → repeat */
.guestbook-card:nth-child(4n+1) { --line-color: rgba(220, 50, 50, 0.20); }
.guestbook-card:nth-child(4n+2) { --line-color: rgba(60, 120, 200, 0.20); }
.guestbook-card:nth-child(4n+3) { --line-color: rgba(120, 170, 90, 0.22); }
.guestbook-card:nth-child(4n+4) { --line-color: rgba(220, 180, 50, 0.22); }

.gb-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    color: rgba(59, 46, 35, 0.6);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s;
    padding: 0;
    z-index: 2;
}

.guestbook-card:hover .gb-delete-btn,
.gb-delete-btn:focus-visible {
    opacity: 1;
}

.gb-delete-btn:hover {
    background: #c85a4e;
    color: #fff;
    transform: scale(1.1);
}

/* Always show on touch devices */
@media (hover: none) {
    .gb-delete-btn {
        opacity: 0.6;
    }
}

.guestbook-card:hover {
    transform: rotate(0) scale(1.02);
    z-index: 2;
}

@keyframes cardPop {
    from {
        opacity: 0;
        transform: rotate(var(--rotate, -1deg)) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rotate, -1deg)) scale(1);
    }
}

/* Notebook line typography — text sits exactly on the lines */
.gb-author {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 28px;          /* matches --line-height */
    margin: 0 0 0;
    padding: 0 0 0;
    border-bottom: 1px dashed rgba(74, 58, 44, 0.18);
    letter-spacing: -0.01em;
    color: #3b2e23;
}

.gb-content {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 28px;          /* sit on each notebook line */
    word-break: keep-all;
    letter-spacing: -0.01em;
    color: #3b2e23;
    margin: 0;
    white-space: pre-wrap;
}

.gb-date {
    font-size: 11px;
    font-weight: 600;
    line-height: 28px;
    opacity: 0.55;
    text-align: right;
    margin: 0;
    color: #6a5a48;
    font-family: 'Caveat', 'Pretendard', cursive;
    letter-spacing: 0.02em;
}

.guestbook-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    letter-spacing: -0.01em;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer-section {
    padding: 60px 28px 40px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(169, 197, 160, 0.16) 50%, rgba(244, 182, 166, 0.12) 100%);
    border-top: 1px solid var(--border-soft);
    position: relative;
}

.footer-date {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-names {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.footer-venue {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 28px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.01em;
}

.share-btn-kakao {
    background: #fee500;
    color: #3c1e1e;
}

.share-btn-link {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border-medium);
}

.share-btn:hover,
.share-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 58, 44, 0.15);
}

.footer-thanks {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-credit {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

/* ============================================
   MODALS
   ============================================ */

/* Contact Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59, 46, 35, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-ivory);
    border-radius: 20px;
    padding: 32px 24px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    max-height: 90vh;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(244, 182, 166, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(169, 197, 160, 0.15) 0%, transparent 40%);
}

.modal-overlay.is-active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
    z-index: 5;
}

.modal-close:hover {
    background: var(--accent-lime);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.modal-dots-deco {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 22px;
}

.modal-dots-deco span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-lime);
}

.modal-dots-deco span:nth-child(2) {
    background: var(--accent-lime-dark);
    width: 10px;
    height: 10px;
}

/* Contact 2-column */
.contact-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.contact-side {
    padding: 0 6px;
}

.contact-divider {
    width: 1px;
    background: var(--border-medium);
    margin: 0 8px;
}

.contact-side-title {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    padding: 8px 0;
    background: var(--accent-lime-soft);
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.contact-person {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.contact-person:last-child {
    border-bottom: none;
}

.contact-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-role strong {
    display: block;
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 800;
    margin-top: 2px;
    letter-spacing: -0.01em;
}

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

.contact-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    border: 1px solid var(--border-soft);
}

.contact-icon-btn:hover,
.contact-icon-btn:active {
    background: var(--accent-lime);
    color: var(--text-dark);
    transform: scale(1.1);
}

/* Bottom sheet */
.bottomsheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(59, 46, 35, 0.55);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.bottomsheet-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.bottomsheet-content {
    background: var(--bg-ivory);
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 20px 24px 32px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
    position: relative;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(244, 182, 166, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(169, 197, 160, 0.14) 0%, transparent 40%);
}

.bottomsheet-overlay.is-active .bottomsheet-content {
    transform: translateY(0);
}

.bottomsheet-handle {
    width: 44px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 2px;
    margin: 0 auto 14px;
}

.bottomsheet-close {
    top: 16px;
    right: 16px;
}

/* Form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    transition: all 0.3s;
}

.form-field.hidden {
    display: none;
}

.form-helper {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--text-soft, #8a8a8a);
    text-align: left;
    letter-spacing: -0.2px;
}

.form-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.01em;
}

.required {
    color: #d98478;
    font-size: 13px;
}

.optional {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 400;
}

/* Toggle Group */
.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 4px;
    border: 1.5px solid var(--border-soft);
}

.toggle-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-btn {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-body);
    transition: all 0.25s;
    user-select: none;
    letter-spacing: -0.01em;
}

.toggle-group input[type="radio"]:checked + .toggle-btn {
    background: var(--accent-lime);
    color: var(--text-dark);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(169, 197, 160, 0.5);
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-btn {
    flex: 1;
    text-align: center;
    min-width: 70px;
    padding: 10px 12px;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-body);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
    letter-spacing: -0.01em;
}

.radio-group input[type="radio"]:checked + .radio-btn {
    border-color: var(--accent-lime-dark);
    background: var(--accent-lime);
    color: var(--text-dark);
    font-weight: 800;
}

.radio-btn:hover {
    border-color: var(--accent-lime-dark);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    max-width: 90vw;
    letter-spacing: -0.01em;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-success {
    background: var(--accent-lime-dark);
    color: var(--text-dark);
    font-weight: 700;
}

.toast.toast-error {
    background: #c85a4e;
    color: #fff;
}

/* Body scroll lock when modal open */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 360px) {
    section {
        padding: 50px 20px;
    }
    .hero-names {
        font-size: 28px;
    }
    .date-number {
        font-size: 44px;
    }
    .countdown-num {
        font-size: 19px;
    }
    .gallery-item {
        width: 220px;
    }
}

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

/* ============================================
   ★ TASK 8: TOP NAVIGATION BAR
   ============================================ */
.top-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -2px 12px rgba(74, 58, 44, 0.08);
    opacity: 0;
    transform: translate(-50%, 100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.top-nav-bar.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 10px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.top-nav-inner::-webkit-scrollbar {
    display: none;
}

.top-nav-link {
    flex: 1 1 auto;
    text-align: center;
    text-decoration: none;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-body);
    padding: 7px 6px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
    min-width: max-content;
}
.top-nav-link:hover {
    color: var(--text-dark);
    background: rgba(169, 197, 160, 0.18);
}
.top-nav-link.is-active {
    color: var(--text-dark);
    background: var(--accent-lime-soft);
    font-weight: 800;
}

/* ============================================
   ★ TASK 2: HERO HEART ICON (white, small)
   ============================================ */
.footer-names {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.footer-heart {
    font-size: 0.55em !important;
    color: var(--heart-red) !important;
    transform: translateY(-1px);
}
.footer-heart i {
    color: var(--heart-red) !important;
    filter: drop-shadow(0 1px 3px rgba(242, 166, 166, 0.4));
}

/* ============================================
   ★ TASK 5: PARKING URGENT NOTICE (red + bounce)
   ============================================ */
.venue-content .parking-urgent {
    /* Match the footer-thanks size (14px) per user request */
    font-size: 14px;
    font-weight: 700;
    color: #d94545;
    line-height: 1.75;
    margin: 4px 0 14px;
    letter-spacing: -0.01em;
    display: block;
    animation: parkingBounce 1.8s ease-in-out infinite;
    transform-origin: center bottom;
}

.parking-urgent-icon {
    display: inline-block;
    font-size: 17px;
    margin-right: 4px;
    vertical-align: -1px;
    animation: emojiWiggle 1.4s ease-in-out infinite;
}

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

@keyframes emojiWiggle {
    0%, 100% {
        transform: rotate(-8deg) scale(1);
    }
    50% {
        transform: rotate(8deg) scale(1.1);
    }
}

.venue-content .parking-detail {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    word-break: keep-all;
}
.venue-content .parking-detail strong {
    color: var(--text-dark);
    font-weight: 800;
    background: linear-gradient(180deg, transparent 60%, rgba(169, 197, 160, 0.45) 60%);
    padding: 0 2px;
}

/* ============================================
   ★ TASK 6: PARKING MAP SHORTCUT BUTTONS
   ============================================ */
.parking-maps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding: 14px;
    background: linear-gradient(180deg, #fbfaf6 0%, #f5f3ec 100%);
    border-radius: 14px;
    border: 1px solid var(--border-soft);
}

.parking-map-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parking-map-label {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}
.parking-map-label i {
    color: var(--accent-lime-dark);
    font-size: 13px;
}
.parking-map-addr {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

.parking-map-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.parking-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid var(--border-soft);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s, box-shadow 0.2s;
}
.parking-map-btn:hover,
.parking-map-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(74, 58, 44, 0.12);
}

.pm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 900;
    color: #fff;
    background: #03c75a; /* Naver green */
    letter-spacing: 0;
}
.pm-kakao-icon {
    background: #fee500;
    color: #3c1e1e;
}
.pm-tmap-icon {
    background: #e60012;
    color: #fff;
}

.pm-text {
    font-size: 12px;
    color: var(--text-dark);
}

/* ============================================
   ★ TASK 9: ACCOUNT DESC EMPHASIS
   ============================================ */
.account-desc-long {
    line-height: 1.8;
    font-size: 14px;
    word-break: keep-all;
}
.account-desc-emphasis {
    display: inline-block;
    margin-top: 6px;
    color: var(--text-dark);
    font-weight: 700;
    background: linear-gradient(180deg, transparent 60%, rgba(242, 166, 166, 0.35) 60%);
    padding: 0 4px;
}

/* ============================================
   ★ TOP-NAV body padding offset (so content doesn't hide)
   ============================================ */
body.has-top-nav {
    padding-bottom: 56px;
}

/* On small screens, nav stays compact */
@media (max-width: 380px) {
    .top-nav-link {
        font-size: 11.5px;
        padding: 6px 4px;
    }
}
