#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* 기본적인 스타일링 - 이미지 위에 검정색 배경 덮기 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #000000; /* 기본 검정색 배경 */
}

.link-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.link-button svg {
    width: 24px;
    height: 24px;
    fill: black;
}
        
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh; /* 약간 더 크게 해 패럴럭스 여유 */
    background-image: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%), url('/logo/wavy_background.webp');
    background-size: cover; /* cover로 변경하여 확대 */
    background-position: center 0px; /* 초기 위치 */
    background-repeat: no-repeat;
    z-index: -1;
}
        
.container {
    text-align: center;
    padding: 20px;
    padding-top: clamp(14vh, 36vh, 42vh); /* 상단 여백을 다소 줄여 QR 가시성 확보 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* 첫 화면에서 QR과 하단 문구가 항상 보이도록 하는 히어로 레이아웃 */
.hero {
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-rows: auto 1fr auto; /* 상단 정보, 중앙 QR(가변), 하단 문구 */
    align-items: center;
    min-height: 100dvh; /* 동적 뷰포트로 모바일 주소창 변화 대응 */
}
.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-qr {
    display: grid;
    place-items: center; /* 중앙 정렬 */
    padding: 8px 0;
}
.hero-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
h1 {
    margin-top: 0;
    margin-bottom: 6px; /* 상단 여백 소폭 축소 */
    font-size: 1.4em; /* 폰트 크기 줄임 */
    color: #ffffff; /* 흰색 폰트 */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
h2 {
    margin-top: 0;
    margin-bottom: 6px; /* 여백 줄임 */
    font-size: 1.1em; /* 폰트 크기 줄임 */
    color: #ffffff; /* 흰색 폰트 */
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
#guestName {
    margin-bottom: 2px;
}
p {
    font-size: 1em; /* 폰트 크기 줄임 */
    color: #e0e0e0; /* 밝은 회색 폰트 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
#eventDatetime {
    margin-top: 2px;
    margin-bottom: 0;
    font-size: 1.0em;
}
#qrcode {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.qr-instructions {
    font-size: 0.9em;
    color: #c0c0c0;
    margin-top: 15px;
}

.location-section {
    margin-top: 40px;
    width: 100%;
    max-width: 600px;
}
.location-section h3 {
    font-size: 1.2em;
    color: #ffffff;
}
.location-section p {
    font-size: 0.9em;
    color: #e0e0e0;
}
.map-container {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.instagram-section {
    margin-top: 40px;
    text-align: center;
}
.instagram-section a {
    display: inline-block;
    color: white;
    text-decoration: none;
}
.instagram-section svg {
    width: 40px;
    height: 40px;
    fill: white;
}
.instagram-section p {
    margin-top: 10px;
    font-size: 1em;
    color: #e0e0e0;
}
        
/* QR 코드 스타일링 - 그라데이션 테마 */
.qr-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    background: white; /* QR 코드는 흰색 배경 유지 */
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 0;
}

/* QR 크기: 고정 200px (라이브러리 기본값과 일치) */
.qr-container svg, .qr-container canvas {
    width: 200px;
    height: 200px;
}
        
.qr-container canvas {
    border-radius: 10px;
}
        
        
/* QR 코드 비활성화 오버레이 */
.qr-disabled {
    position: relative;
}
        
.qr-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px) brightness(0.7);
    border-radius: 15px;
    z-index: 10;
    /* 은은한 모자이크 효과를 위한 패턴 */
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}
        
.qr-disabled-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    z-index: 11;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    pointer-events: none;
}
        
@media (prefers-reduced-motion: reduce) {
    #splash-screen {
        transition: none;
    }
}
        
/* 안내장 스타일 */
.guide-section {
    width: 100%;
    max-width: 720px;
    text-align: left;
    margin-top: 36px;
    color: #eaeaea;
}
.guide-section h3, .guide-section h4 {
    color: #ffffff;
    margin: 24px 0 12px 0;
}
.guide-section ul {
    padding-left: 18px;
    line-height: 1.8;
}
.guide-section p, .guide-section li {
    color: #e0e0e0;
}
.qr-hint {
    margin: 16px 0 0 0;
    color: #cfcfcf;
    font-size: 0.95em;
}
        
.guide-note {
    color: #c8c8c8;
    font-size: 0.95em;
    margin: 6px 0 10px 0;
}
.letter-card {
    white-space: pre-wrap;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    line-height: 1.6;
    color: #eaeaea;
}


