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

html {
    height: 100%;
    height: -webkit-fill-available;
    overflow: hidden;
    position: fixed;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

/* 공통 스타일 */
.step {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
}

.step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
    padding-left: calc(20px + env(safe-area-inset-left, 0));
    padding-right: calc(20px + env(safe-area-inset-right, 0));
}

/* 배경 그라데이션 */
.background-gradient {
    position: fixed;
    top: calc(-1 * env(safe-area-inset-top, 0));
    left: 0;
    width: 100%;
    height: calc(100vh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
    height: calc(100dvh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
    background: linear-gradient(135deg, #ffb3d9 0%, #ffd9ec 50%, #ffe6f2 100%);
    z-index: -1;
    transition: background 1s ease;
}

.background-gradient.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 떠다니는 하트 */
.floating-hearts {
    position: fixed;
    top: calc(-1 * env(safe-area-inset-top, 0));
    left: 0;
    width: 100%;
    height: calc(100vh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
    height: calc(100dvh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
    pointer-events: none;
    z-index: 0;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '💕';
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

.floating-hearts::before {
    left: 10%;
    animation-delay: 0s;
}

.floating-hearts::after {
    left: 80%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20vh) rotate(180deg);
    }
}

/* STEP 1: HEADER 영역 */
.step1-header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

.header-title {
    font-size: 28px;
    color: #d63384;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(214, 51, 132, 0.1);
}

/* STEP 1: 초대장 카드 */
.invitation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: min(400px, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    width: 100%;
    text-align: center;
    animation: cardAppear 0.8s ease-out;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-to {
    font-size: 18px;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
}

.card-from {
    font-size: 18px;
    color: #d63384 !important;
    font-weight: 600;
    margin-top: 5px;
    text-align: right;
    -webkit-text-fill-color: #d63384;
}

.card-body {
    text-align: left;
    line-height: 1.8;
    margin: 0;
}

.card-line {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.card-spacing {
    margin-top: 8px;
}

.card-date {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* STEP 1: RSVP SECTION */
.rsvp-section {
    width: 100%;
    max-width: min(400px, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    animation: fadeInUp 0.8s ease-out 0.3s both;
    box-sizing: border-box;
}

.rsvp-title {
    text-align: center;
    margin-bottom: 20px;
}

.rsvp-title-main {
    font-size: 18px;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.rsvp-title-sub {
    font-size: 14px;
    color: #d63384;
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.rsvp-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.rsvp-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffb3d9;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rsvp-option:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ff8fab;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

.rsvp-option.selected {
    background: rgba(255, 182, 193, 0.2);
    border-color: #ff6b9d;
}

.rsvp-radio {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d63384;
}

.rsvp-option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.rsvp-option-main {
    font-size: 16px;
    color: #d63384;
    font-weight: 600;
}

.rsvp-option-sub {
    font-size: 13px;
    color: #666;
}

.btn-rsvp-send {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.btn-rsvp-send:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

.btn-rsvp-send:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-rsvp-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, #ffb3d9 0%, #ffc0cb 100%);
}

.btn {
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
}

.btn-yes:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

.btn-maybe {
    background: rgba(255, 255, 255, 0.9);
    color: #d63384;
    border: 2px solid #ffb3d9;
}

.btn-maybe:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.2);
}

/* STEP 2: RSVP 반응 */
.confetti-container {
    position: fixed;
    top: calc(-1 * env(safe-area-inset-top, 0));
    left: 0;
    width: 100%;
    height: calc(100vh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
    height: calc(100dvh + env(safe-area-inset-top, 0) + env(safe-area-inset-bottom, 0));
    pointer-events: none;
    z-index: 10;
}

.response-message {
    text-align: center;
    color: white;
    z-index: 2;
}

.message-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

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

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* STEP 3: 비행기 티켓 */
.ticket-container {
    width: 100%;
    max-width: min(400px, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    animation: slideUp 0.8s ease-out;
    box-sizing: border-box;
}

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

.boarding-pass {
    background: white;
    border-radius: 15px;
    padding: 26px 26px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: ticketShake 1.2s ease-out 0.8s;
    width: 100%;
    box-sizing: border-box;
}

@keyframes ticketShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    8.33% {
        transform: rotate(-3deg);
    }
    16.66% {
        transform: rotate(3deg);
    }
    25% {
        transform: rotate(0deg);
    }
    33.33% {
        transform: rotate(-3deg);
    }
    41.66% {
        transform: rotate(3deg);
    }
    50% {
        transform: rotate(0deg);
    }
    58.33% {
        transform: rotate(-3deg);
    }
    66.66% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(0deg);
    }
}

.ticket-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px dashed #ffb3d9;
    padding-bottom: 12px;
}

.airplane-icon {
    font-size: 40px;
    margin-bottom: 6px;
}

.ticket-header h2 {
    font-size: 20px;
    color: #d63384;
    letter-spacing: 2px;
    font-weight: 700;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.route-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    flex-wrap: wrap;
}

.airport-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.from-group {
    order: 1;
}

.to-group {
    order: 3;
}

.airport-code {
    font-size: 36px;
    font-weight: 900;
    color: #d63384;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 5px;
}

.arrow-icon {
    order: 2;
    width: 40px;
    height: 3px;
    position: relative;
    margin: 0 15px;
    background: #d63384;
    align-self: center;
}

.arrow-icon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid #d63384;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.city-name {
    font-size: 14px;
    color: #999;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.ticket-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ffb3d9;
}

.ticket-quote {
    font-size: 14px;
    color: #d63384;
    font-style: italic;
    line-height: 1.6;
}

.terms-container {
    margin-top: 18px;
    width: 100%;
    max-width: min(400px, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    animation: fadeInUp 0.8s ease-out 0.5s both;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terms-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.terms-title {
    font-size: 16px;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list li {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.terms-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d63384;
    font-weight: bold;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d63384;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.terms-checkbox:checked + .checkbox-custom {
    background: #d63384;
    border-color: #d63384;
}

.terms-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.terms-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.btn-journey {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    opacity: 0.5;
    cursor: not-allowed;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: none;
}

.btn-journey:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

.btn-journey:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

.btn-journey:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-journey:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* STEP 4: 메인 고백 */
.confession-container {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px);
    padding: 0 calc(20px + env(safe-area-inset-left, 0));
    padding-right: calc(20px + env(safe-area-inset-right, 0));
    box-sizing: border-box;
}

.confession-text {
    font-size: 32px;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
    line-height: 1.4;
}

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

.heart-beat {
    width: 100px;
    height: 100px;
    margin: 30px auto;
    position: relative;
}

.heart-beat::before {
    content: '❤️';
    font-size: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.confession-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px auto 0;
    width: 100%;
    max-width: min(300px, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    animation: fadeInUp 0.8s ease-out 1s both;
    align-items: center;
    box-sizing: border-box;
}

.btn-confession {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    width: 100%;
}

/* STEP 5: Celebration Screen */
.celebration-container {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px);
    padding: 0 calc(20px + env(safe-area-inset-left, 0));
    padding-right: calc(20px + env(safe-area-inset-right, 0));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.celebration-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.celebration-heart {
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    pointer-events: none;
}

@keyframes celebrationFloat {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(0.8);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) translateX(calc(var(--drift, 0) * 1px)) scale(1.2);
    }
}

.celebration-main {
    font-size: 48px;
    color: #d63384;
    font-weight: 700;
    margin: 0;
    animation: celebrationBounce 0.6s ease-out;
    text-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
}

@keyframes celebrationBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.celebration-sub {
    font-size: 18px;
    color: #d63384;
    margin: 0;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    max-width: 300px;
}

.btn-celebration {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    width: 100%;
    max-width: min(300px, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-top: 10px;
}

.btn-celebration:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

/* STEP 6: 뉴욕 데이트 티저 */
.nyc-skyline {
    position: fixed;
    bottom: calc(-1 * env(safe-area-inset-bottom, 0));
    left: 0;
    width: 100%;
    height: calc(200px + env(safe-area-inset-bottom, 0));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.nyc-skyline::before {
    content: '🏙️';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 100px;
    opacity: 0.3;
}

.teaser-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: min(90%, calc(100% - env(safe-area-inset-left, 0) - env(safe-area-inset-right, 0) - 40px));
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: cardAppear 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.teaser-title {
    font-size: 24px;
    color: #d63384;
    margin-bottom: 20px;
    font-weight: 700;
}

.teaser-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.teaser-hint {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.btn-hint {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 20px;
}

.hint-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 182, 193, 0.2);
    border-radius: 10px;
    min-height: 50px;
}

.hint-item {
    font-size: 16px;
    color: #d63384;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease-out;
}

/* STEP 5: 엔딩 (The Proof) */
.background-gradient.dark-night {
    background: linear-gradient(to bottom, 
        rgba(8, 8, 18, 1) 0%, 
        rgba(10, 10, 20, 1) 50%,
        rgba(12, 12, 22, 1) 100%);
}

.ending-photo-section {
    position: relative;
    width: calc(100% + env(safe-area-inset-left, 0) + env(safe-area-inset-right, 0));
    margin-left: calc(-1 * env(safe-area-inset-left, 0));
    margin-right: calc(-1 * env(safe-area-inset-right, 0));
    height: 75vh;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, 
        rgba(10, 10, 20, 1) 0%, 
        rgba(15, 15, 25, 1) 100%);
}

.ending-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeInSlow 1.5s ease-out;
    display: block;
    position: relative;
}

.ending-photo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to bottom, 
        rgba(8, 8, 18, 1) 0%,
        rgba(8, 8, 18, 0.8) 30%,
        rgba(8, 8, 18, 0.4) 70%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.ending-photo-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(10, 10, 20, 0.3) 30%,
        rgba(10, 10, 20, 0.7) 70%,
        rgba(10, 10, 20, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

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

.photo-location {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    right: calc(20px + env(safe-area-inset-right, 0));
    text-align: right;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.location-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: right;
}

.location-subtext {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0 0;
    font-style: italic;
    text-align: right;
}


/* 사진과 배경이 자연스럽게 이어지도록 */
#step6 {
    background: linear-gradient(to bottom, 
        transparent 0%,
        transparent 75vh,
        rgba(10, 10, 20, 1) 75vh,
        rgba(15, 15, 25, 1) 100%);
}

/* STEP 6는 사진을 풀블리드로 보여주기 위해 좌우 패딩 제거 (notch 아이폰 대응) */
#step6.step.active {
    padding-left: 0;
    padding-right: 0;
    padding-top: calc(env(safe-area-inset-top, 0));
    padding-bottom: calc(env(safe-area-inset-bottom, 0));
}

.btn-save,
.btn-screenshot {
    background: rgba(255, 255, 255, 0.9);
    color: #d63384;
    border: 2px solid #ffb3d9;
}

.btn-save:hover,
.btn-screenshot:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.3);
}

/* 아이폰 특화 스타일 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari 전용 스타일 */
    body {
        position: fixed;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
        overflow: hidden;
    }
    
    .step {
        position: fixed;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    /* STEP 1 반응형 */
    .header-title {
        font-size: 24px;
    }
    
    .card-to {
        font-size: 16px;
    }
    
    .card-from {
        font-size: 16px;
        color: #d63384 !important;
        -webkit-text-fill-color: #d63384;
    }
    
    .card-line {
        font-size: 15px;
    }
    
    .card-date {
        font-size: 13px;
    }
    
    .rsvp-title-main {
        font-size: 16px;
    }
    
    .rsvp-title-sub {
        font-size: 13px;
    }
    
    .rsvp-option {
        padding: 12px 15px;
    }
    
    .rsvp-option-main {
        font-size: 15px;
    }
    
    .rsvp-option-sub {
        font-size: 12px;
    }
    
    .btn-rsvp-send {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .invitation-card {
        padding: 20px 20px;
    }
    
    .card-content h1 {
        font-size: 20px;
    }
    
    .card-content p {
        font-size: 16px;
    }
    
    .confession-text {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .celebration-main {
        font-size: 36px;
    }
    
    .celebration-sub {
        font-size: 16px;
        max-width: 280px;
    }
    
    .btn-celebration {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .teaser-title {
        font-size: 20px;
    }
    
    .teaser-text {
        font-size: 16px;
    }
    
    .ending-photo-section {
        height: 70vh;
    }
    
    .photo-location {
        bottom: 15px;
        padding: 10px 16px;
    }
    
    .location-text {
        font-size: 12px;
    }
    
    .location-subtext {
        font-size: 10px;
    }
    
    
    .invitation-card {
        padding: 20px 20px;
    }
    
    .boarding-pass {
        padding: 22px 18px;
    }

    .terms-container {
        margin-top: 14px;
    }

    .terms-checkbox-label {
        margin-bottom: 12px;
    }
    
    .teaser-card {
        padding: 30px 20px;
    }
    
    .btn {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .airport-code {
        font-size: 28px;
    }
    
    .route-section {
        gap: 15px;
        padding: 20px 0;
    }
    
    .arrow-icon {
        width: 30px;
        margin: 0 10px;
    }
    
    .arrow-icon::after {
        border-left: 10px solid #d63384;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        right: -6px;
    }
    
    .city-name {
        font-size: 12px;
        font-weight: 700;
    }
    
    .airport-code {
        font-size: 28px;
    }
    
    .terms-container {
        max-width: 100%;
    }
    
    .terms-content {
        padding: 15px;
    }
    
    .terms-list li {
        font-size: 11px;
    }
    
    .terms-text {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .card-content h1 {
        font-size: 18px;
    }
    
    .confession-text {
        font-size: 22px;
    }
    
    .ticket-header h2 {
        font-size: 18px;
    }
}

/* 컨페티 애니메이션 */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b9d;
    animation: confettiFall 3s linear forwards;
    will-change: transform, opacity;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(calc(var(--drift, 0) * 1vw)) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(calc(var(--drift, 0) * 1.5vw)) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(75vh) translateX(calc(var(--drift, 0) * 2vw)) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(110vh) translateX(calc(var(--drift, 0) * 2.5vw)) rotate(720deg);
        opacity: 0;
    }
}

