:root {
    --ios-radius: 44px;
    --app-radius: 15px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --ios-blue: #007aff;
    --ios-gray: #f2f2f7;
    --ios-separator: rgba(60, 60, 67, 0.18);
    --wallpaper: radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.88), transparent 22%),
                 radial-gradient(circle at 70% 22%, rgba(255, 203, 214, 0.95), transparent 26%),
                 linear-gradient(145deg, #f6d6dd 0%, #dcb5ee 45%, #91b8fa 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.45px;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    overscroll-behavior: none;
}

body {
    background: #151515;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: #1d1d1f;
}

button, a, input, textarea {
    font: inherit;
}

button, a {
    touch-action: manipulation;
}

.iphone-shell {
    position: relative;
    width: min(100vw, 393px);
    height: min(100dvh, 852px);
    min-height: 680px;
    background: #000;
    border-radius: var(--ios-radius);
    overflow: hidden;
    box-shadow: 0 0 0 10px #222, 0 22px 70px rgba(0, 0, 0, 0.75);
    isolation: isolate;
}

.dynamic-island {
    display: none;
}

.screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition:
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.48s ease,
        filter 0.55s ease;
}

.lock-screen{
    background-image: url('img/bg1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.home-screen {
    background-image: url('img/bg2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.lock-screen { z-index: 10; }
.home-screen {
    z-index: 5;
    opacity: 1;
    transform: scale(1.05);
    filter: blur(8px);
}

.status-bar,
.icons,
.battery {
    display: none;
}

.lock-widgets {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: calc(78px + var(--safe-top));
    color: #fff;
    z-index: 2;
}

.lock-date {
    font-size: 19px;
    font-weight: 650;
    text-shadow: 0 2px 9px rgba(0,0,0,0.25);
}

.lock-clock {
    font-size: clamp(64px, 18vw, 82px);
    line-height: 0.95;
    font-weight: 260;
    margin-top: 8px;
    text-shadow: 0 3px 16px rgba(0,0,0,0.18);
}

.cover-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -1.8px;
}

.lock-couple {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 720;
    text-shadow: 0 2px 10px rgba(0,0,0,0.22);
}

.lock-dday {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 12px;
    font-weight: 750;
}

.notification-card {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 270px;
    z-index: 2;
    padding: 13px 14px 14px;
    color: #fff;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 35px rgba(0,0,0,0.16);
    backdrop-filter: blur(26px) saturate(1.2);
    -webkit-backdrop-filter: blur(26px) saturate(1.2);
    cursor: pointer;
    margin-top: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px) scale(0.96);
    pointer-events: none;
}

.notification-card.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: notificationDrop 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes notificationDrop {
    0% {
        opacity: 0;
        transform: translateY(-22px) scale(0.94);
    }
    62% {
        opacity: 1;
        transform: translateY(4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-card:active { transform: scale(0.985); }
.notification-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: 0.78;
}
.notification-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.notification-card p { font-size: 13px; opacity: 0.82; }

.home-widget {
    position: relative;
    z-index: 1;
    margin: calc(30px + var(--safe-top)) 22px 0;
    padding: 12px 14px 12px;
    border-radius: 26px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(2px) saturate(1.2);
    -webkit-backdrop-filter: blur(2px) saturate(1.2);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.widget-kicker,
.section-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.2px;
    opacity: 0.72;
    text-transform: uppercase;
}

.widget-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.widget-heart-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.72;
}

.widget-heart-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.widget-names {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 3px;
}

.widget-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.82;
    margin-bottom: 6px;
}

.widget-sep { opacity: 0.5; }

.widget-dday-row {
    display: flex;
    align-items: center;
}

.widget-dday-label {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.home-widget p { font-size: 13px; opacity: 0.84; }

.app-container {
    position: relative;
    z-index: 1;
    padding: 24px 24px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 21px 15px;
}

.app-icon {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: inherit;
    min-width: 0;
}

.icon-shape {
    width: 60px;
    height: 60px;
    border-radius: var(--app-radius);
    display: grid;
    place-items: center;
    font-size: 31px;
    box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.35), 0 9px 18px rgba(0,0,0,0.14);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.app-icon:active .icon-shape {
    transform: scale(0.86);
    filter: brightness(0.96);
}

.app-label {
    max-width: 72px;
    color: #fff;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 560;
    text-shadow: 0 1px 4px rgba(0,0,0,0.42);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-heart { background: linear-gradient(135deg, #ff3b6b, #ff9f0a); }
.bg-story { background: #ff6b9d; }
.app-icon-empty { display: block; }

.story-app-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-heart-svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

.story-days-badge {
    position: absolute;
    top: -8px;
    right: -14px;
    background: #ef2758;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 10px;
    padding: 2px 5px;
    min-width: 22px;
    text-align: center;
    border: 1px solid #fff;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bg-guest { background: linear-gradient(135deg, #bf5af2, #5e5ce6); }
.bg-phone { background: linear-gradient(135deg, #32d74b, #30d158); }
.bg-share { background: linear-gradient(135deg, #64d2ff, #0a84ff); }

.app-svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    display: block;
}

.guestbook-app-icon,
.share-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gallery {
    background: #fff;
}

.photo-app-icon {
	position: relative;
	overflow: hidden;
	display: inline-block;
}

.photo-rectangle {
	width: 14px;
    height: 24px;
    border-radius: 999px;
    position: absolute;
    top: 5px;
    left: 23px;
}

.photo-rectangle.orange {
	background-color: rgba(243, 156, 18, 0.75);
	z-index: 1;
}

.photo-rectangle.yellow {
	background-color: rgba(241, 196, 15, 0.75);
	transform-origin: 55% 100%;
	transform: rotate(45deg);
}

.photo-rectangle.green {
	background-color: rgba(46, 204, 113, 0.75);
	transform-origin: 55% 105%;
	transform: rotate(90deg);
}

.photo-rectangle.lightBlue {
	background-color: rgba(27, 188, 155, 0.75);
	transform-origin: 52.5% 105%;
	transform: rotate(135deg);
}

.photo-rectangle.blue {
	background-color: rgba(65, 131, 215, 0.75);
	transform-origin: 50% 105%;
	transform: rotate(180deg);
}

.photo-rectangle.purple {
	background-color: rgba(102, 51, 153, 0.75);
	transform-origin: 47.5% 105%;
	transform: rotate(225deg);
}

.photo-rectangle.violet {
	background-color: rgba(155, 89, 182, 0.75);
	transform-origin: 45% 105%;
	transform: rotate(270deg);
}

.photo-rectangle.red {
	background-color: rgba(242, 38, 19, 0.75);
	transform-origin: 45% 102.5%;
	transform: rotate(315deg);
}

.bg-map {
	background: #f8f8f8;
}

.map-app-icon {
	position: relative;
	overflow: hidden;
	display: inline-block;
}

.map-line,
.map-area,
.map-road,
.map-navigation {
	position: absolute;
	display: block;
}

.map-area-green {
	width: 70px;
    height: 70px;
    right: -10px;
    top: -18px;
    background: linear-gradient(
		to right,
		#7ee39a 0%,
		#34c759 55%,
		#34c759 100%
	);
    transform: rotate(22deg);
    z-index: 1;
}

.map-area-pink {
	width: 42px;
	height: 32px;
	left: -13px;
	bottom: 5px;
	background: #F08ACC;
	transform: rotate(35deg);
	z-index: 2;
}

.map-area-yellow {
	width: 50px;
    height: 32px;
    right: -11px;
    bottom: -22px;
    background: #FECB00;
    transform: rotate(35deg);
    z-index: 2;
}

.map-area-gray {
	width: 50px;
    height: 50px;
    right: -25px;
    top: -24px;
    border-radius: 50%;
    border: 8px solid #c7c7cc;
    z-index: 3;
}

.map-area-white {
	width: 52px;
    height: 52px;
    right: -25px;
    top: -24px;
    border-radius: 50%;
    border: 12px solid #FEFFFE;
    z-index: 2;
}

.map-road-1 {
	width: 10px;
    height: 40px;
    left: 15px;
    top: -3px;
    background: #0683FF;
    z-index: 4;
}

.map-road-2 {
	width: 16px;
    height: 70px;
    left: 12px;
    top: -4px;
    background: #E7E7EE;
    z-index: 3;
}

.map-road-3 {
    width: 15px;
    height: 80px;
    left: 25px;
    top: -4px;
    background: #E7E7EE;
    transform: rotate(120deg);
    z-index: 3;
}

.map-navigation {
	width: 22px;
    height: 22px;
    left: 34%;
    top: 54%;
    transform: translate(-50%, -35%);
    background: #0683FF;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 3px #fff;
}

.map-navigation::before {
	content: "";
    position: absolute;
    left: 50%;
    top: 47%;
    width: 14px;
    height: 16px;
    background: #fff;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 90% 96%, 50% 75%, 10% 96%);
}

.map-navigation::after {
	content: none;
}

.map-card {
    padding: 0;
    overflow: hidden;
}

.wedding-map {
    width: 100%;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    background: #e5e5ea;
}

.map-info-window {
    padding: 8px 10px;
    min-width: 150px;
    font-size: 12px;
    line-height: 1.4;
}

.map-info-window strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: #111;
}

.map-info-window span {
    display: block;
    color: #555;
    white-space: nowrap;
}

.map-error {
    height: 260px;
    display: grid;
    place-items: center;
    color: #8e8e93;
    font-size: 14px;
}

.bg-mail {
	background: linear-gradient(to bottom, #1f73f2 0%, #1c8df5 55%, #20c8ef 100%);
}

.mail-app-icon {
	position: relative;
	overflow: hidden;
	display: inline-block;
}

.mail-envelope {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40px;
	height: 27px;
	transform: translate(-50%, -48%);
	background: #fff;
	z-index: 2;
	overflow: hidden;
}

.mail-line {
	position: absolute;
	display: block;
	background: #1c8df5;
	height: 2px;
	border-radius: 999px;
	transform-origin: center;
}

.mail-line-top {
    position: absolute;
	display: block;
	border: 2px solid #1c8df5;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    left: 0px;
    top: -27px;
	transform: rotate(-45deg);
    transform-origin: center;
}

.mail-line-left {
    width: 30px;
    left: -12px;
    top: 23px;
	transform: rotate(-45deg);
}

.mail-line-right {
    width: 30px;
    right: -12px;
    top: 23px;
	transform: rotate(45deg);
}

.bg-calendar {
	background: #ffffff;
}

.calendar-app-icon {
	position: relative;
	overflow: hidden;
	display: inline-block;
	background: #ffffff;
	border-radius: 18px;
}

.calendar-header {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 18px;
	background: linear-gradient(to bottom, #ff5a52 0%, #ff453a 100%);
	border-radius: 18px 18px 0 0;
}

.calendar-row {
	position: absolute;
	width: 3.5px;
	height: 3.5px;
	border-radius: 50%;
	background: #1f1f1f;
	box-shadow:
		8px 0 0 #1f1f1f,
		16px 0 0 #1f1f1f,
		24px 0 0 #1f1f1f,
		32px 0 0 #1f1f1f,
		40px 0 0 #1f1f1f,
		48px 0 0 #1f1f1f;
}

.calendar-row.row-1 {
	left: 5px;
	top: 22px;
}

.calendar-row.row-2 {
	left: 5px;
	top: 30px;
}

.calendar-row.row-3 {
	left: 5px;
	top: 38px;
}

.calendar-row.row-4 {
	left: 5px;
	top: 46px;
}

/* 선택된 날짜(빨간 점) */
.calendar-dot.active {
	position: absolute;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #ff453a;
	left: 28px;
	top: 38px;
	z-index: 2;
}

.venue-img{
    width: 100%;
    height: 300px;
    border-radius: 15px;
    background-image: url('img/bg3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.schedule-calendar-card {
    padding: 20px 18px 16px;
}

.schedule-cal-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.schedule-cal-year {
    font-size: 14px;
    font-weight: 600;
    color: #8e8e93;
}

.schedule-cal-month {
    font-size: 22px;
    font-weight: 750;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.schedule-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    row-gap: 2px;
}

.cal-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    padding-bottom: 8px;
}

.cal-dow.sun { color: #ff453a; }
.cal-dow.sat { color: #007aff; }

.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    font-size: 15px;
    font-weight: 400;
    color: #1d1d1f;
    border-radius: 50%;
    position: relative;
}

.cal-day.empty {
    pointer-events: none;
}

.cal-day.sun { color: #ff453a; }
.cal-day.sat { color: #007aff; }

.cal-day.wedding-day {
    background: linear-gradient(135deg, #ff6b8a, #d946a8);
    color: #fff !important;
    font-weight: 750;
    box-shadow: 0 4px 14px rgba(217, 70, 168, 0.38);
}

.cal-day.wedding-day::after {
    content: "♥";
    position: absolute;
    bottom: -1px;
    right: -1px;
    font-size: 10px;
    color: #fff;
    background: #ff3b6b;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.schedule-cal-badge {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 138, 0.1), rgba(217, 70, 168, 0.1));
    border: 1px solid rgba(217, 70, 168, 0.18);
    font-size: 13px;
    font-weight: 600;
    color: #d946a8;
    text-align: center;
    letter-spacing: 0.1px;
}

.dock-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(36px + var(--safe-bottom));
    z-index: 1;
    padding: 0 16px;
}

.dock {
    min-height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(2px) saturate(1.4);
    -webkit-backdrop-filter: blur(2px) saturate(1.4);
}

.dock .app-label {
    display: none;
}

.app-window {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    background: var(--ios-gray);
    border-radius: var(--ios-radius);
    transform: scale(0.92) translateY(100%);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.app-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-window.gesture-dragging {
    transition: none;
    will-change: transform, opacity;
}

.app-window.home-gesture-closing {
    transform: translate3d(0, -28%, 0) scale(0.86);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.24s ease;
}

.app-header {
    position: relative;
    margin-top: var(--safe-top);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    background: var(--ios-gray);
    border-bottom: 0;
    z-index: 5;
}

.ios-back-btn {
    appearance: none;
    border: none;
    background: transparent;
    min-width: auto;
    height: 36px;
    padding: 0 6px;
    color: var(--ios-blue);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ios-back-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: -8px;
}

#appTitle {
    display: none;
}

.header-spacer { display: none; }

.app-content {
    flex: 1;
    min-height: 0;
    padding: 12px 14px calc(78px + var(--safe-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    color: #1d1d1f;
    background: var(--ios-gray);
    scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
    display: none;
}

.content-card {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 24px;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 0 rgba(0,0,0,0.02);
}

.hero-card {
    background: linear-gradient(160deg, #ffffff 0%, #fdf4f8 100%);
}
.content-card h2 { font-size: 24px; margin-bottom: 12px; }
.content-card h3 { font-size: 18px; margin-bottom: 8px; }
.content-card p { font-size: 15px; line-height: 1.62; margin-top: 6px; }
.muted { color: #6e6e73; }

.ios-list {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 14px;
}

.list-row {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border: 0;
    border-bottom: 0.5px solid var(--ios-separator);
    background: #fff;
    color: #111;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.list-row:last-child { border-bottom: 0; }
.list-row:active { background: #f0f0f5; }
.list-row b { color: var(--ios-blue); font-size: 14px; font-weight: 600; }
.list-row small { display: block; color: #8e8e93; font-size: 12px; margin-bottom: 2px; }

.list-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #c7c7cc;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── iOS Transport Info ───────────────────── */
.ios-transport {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 14px;
}

.ios-transport-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--ios-separator);
}

.ios-transport-item:last-child { border-bottom: 0; }

.ios-transport-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.ios-transport-icon svg {
    width: 17px;
    height: 17px;
    color: #636366;
}

.ios-transport-body { flex: 1; min-width: 0; }

.ios-transport-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.ios-transport-label {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    margin-bottom: 1px;
}

.ios-transport-desc {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.5;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.gallery-columns .photo-tile {
    aspect-ratio: unset;
    border-radius: 4px;
}

.photo-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(229, 229, 234, 0.7);
    cursor: pointer;
    transform: translateZ(0);
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.22s ease;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

.photo-tile--hero {
    aspect-ratio: 4 / 3;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.gallery-columns .photo-tile img {
    height: auto;
    object-fit: unset;
}

.photo-tile:active {
    filter: brightness(0.88);
}

.photo-like-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 20px;
    padding: 5px 7px 4px;
    cursor: pointer;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
    transition: transform 0.12s ease;
}

.photo-like-btn:active {
    transform: scale(0.88);
}

.photo-like-btn svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-like-btn.liked svg {
    fill: #ff3b30;
    transform: scale(1.18);
}

.photo-like-count {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.2px;
    min-height: 12px;
    display: block;
}


.guest-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.guest-form input,
.guest-form textarea {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 13px 14px;
    background: #fff;
    color: #111;
    outline: none;
    resize: none;
}

.guest-form button {
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--ios-blue);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.message-list {
    transition: opacity 0.15s ease;
}

.message-list.is-loading { opacity: 0.4; }

.message-card,
.empty-message {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: #fff;
}
.message-card { position: relative; }
.message-card strong { display: block; padding-right: 70px; }
.message-date {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 11px;
    color: #aaa;
}
.message-delete-btn {
    position: absolute;
    bottom: 12px;
    right: 14px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #ff3b30;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.15s, width 0.2s, border-radius 0.2s, font-size 0.2s;
    white-space: nowrap;
    overflow: hidden;
}
.message-delete-btn:hover { opacity: 1; }
.message-delete-btn.confirming {
    width: 52px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    opacity: 1;
}
.message-card p { margin-top: 5px; color: #555; line-height: 1.45; }
.empty-message { color: #8e8e93; text-align: center; }

.message-load-status {
    text-align: center;
    color: #8e8e93;
    font-size: 12px;
    padding: 12px 0;
}

.home-bar-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(34px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: calc(8px + var(--safe-bottom));
    z-index: 110;
    pointer-events: none;
}

.lock-home-guide {
    min-height: calc(430px + var(--safe-bottom));
    pointer-events: auto;
    touch-action: none;
}

.home-bar {
    width: 140px;
    height: 5px;
    border-radius: 999px;
    background: #fff;
    pointer-events: auto;
}

.home-bar-dark { background: #111; }

.app-window .home-bar-wrapper {
    min-height: calc(76px + var(--safe-bottom));
    pointer-events: auto;
    touch-action: none;
}

.app-window .home-bar {
    cursor: grab;
}
.home-bar-hint {
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    animation: fadePulse 1.8s infinite ease-in-out;
}

.unlocked-lock {
    transform: translate3d(0, -105%, 0);
    opacity: 1;
}

.unlocked-home {
    opacity: 1 !important;
    transform: scale(1) translateZ(0) !important;
    filter: blur(0) !important;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 14px);
    z-index: 999;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(20,20,22,0.88);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gallery-viewer {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px) saturate(1.15);
    -webkit-backdrop-filter: blur(5px) saturate(1.15);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.22s ease;
    touch-action: none;
}

.gallery-viewer.active {
    opacity: 1;
    pointer-events: auto;
    touch-action: none;
}

.gallery-viewer-stage {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 70%;
    justify-content: center;
}

.gallery-viewer-top {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    pointer-events: auto;
}

.gallery-viewer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    pointer-events: auto;
}

.gallery-viewer-close {
    border: 0;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #111;
    font-size: 14px;
    font-weight: 650;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 8px 22px rgba(0,0,0,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
}

.gallery-viewer-count {
    min-width: 52px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.68);
    color: rgba(0,0,0,0.62);
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.gallery-viewer-like {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 11px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 8px 22px rgba(0,0,0,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease;
}

.gallery-viewer-like:active {
    transform: scale(0.9);
}

.gallery-viewer-like svg {
    width: 17px;
    height: 17px;
    fill: rgba(0, 0, 0, 0.28);
    transition: fill 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.gallery-viewer-like.liked svg {
    fill: #ff3b30;
    transform: scale(1.2);
}

.gallery-viewer-like-count {
    font-size: 13px;
    font-weight: 650;
    color: rgba(0, 0, 0, 0.62);
    min-width: 0;
    line-height: 1;
}

.gallery-viewer-photo-area {
    position: relative;
    width: 100%;
    height: min(61vh, 680px);
    overflow: hidden;
    border-radius: 24px;
    touch-action: none;
    transition: height 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-viewer-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.gallery-viewer-track.dragging {
    transition: none;
}

.gallery-viewer-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.gallery-viewer-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    border-radius: 24px;
    touch-action: none;
}

.gallery-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: rgba(0,0,0,0.68);
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
}

.gallery-viewer-nav::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2.5px solid rgba(0,0,0,0.68);
    border-right: 2.5px solid rgba(0,0,0,0.68);
}

.gallery-viewer-nav.prev {
    left: 2px;
}

.gallery-viewer-nav.prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.gallery-viewer-nav.next {
    right: 2px;
}

.gallery-viewer-nav.next::before {
    transform: translateX(-2px) rotate(45deg);
}

.gallery-viewer-nav:disabled {
    opacity: 0.22;
    pointer-events: none;
}

.gallery-viewer-photo-area,
.gallery-viewer-track,
.gallery-viewer-slide,
.gallery-viewer-slide img {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.gallery-viewer-slide img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.34; transform: translateY(0); }
    50% { opacity: 0.95; transform: translateY(-2px); }
}

/* ── RSVP 위젯 버튼 ── */
.widget-dday-row {
    justify-content: space-between;
}

.widget-rsvp-btn {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background 0.15s;
}

.widget-rsvp-btn:active {
    background: rgba(255,255,255,0.32);
}

/* ── RSVP 팝업 오버레이 ── */
.rsvp-overlay {
    position: absolute;
    inset: 0;
    z-index: 90;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: background 0.32s ease, backdrop-filter 0.32s ease;
    border-radius: var(--ios-radius);
    overflow: hidden;
}

.rsvp-overlay.active {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
}

/* ── 바텀 시트 ── */
.rsvp-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f2f2f7;
    border-radius: 26px 26px 0 0;
    padding: 10px 20px calc(32px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 92%;
    overflow-y: auto;
    scrollbar-width: none;
}

.rsvp-sheet::-webkit-scrollbar { display: none; }

.rsvp-overlay.active .rsvp-sheet {
    transform: translateY(0);
}

.rsvp-handle {
    width: 40px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    margin: 0 auto 20px;
}

/* ── 단계 전환 ── */
.rsvp-step { display: flex; flex-direction: column; align-items: center; }
.rsvp-step--hidden { display: none; }

/* ── 1단계 콘텐츠 ── */
.rsvp-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.rsvp-title {
    font-size: 20px;
    font-weight: 750;
    color: #1d1d1f;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.4px;
}

.rsvp-desc {
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 18px;
}

.rsvp-info-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.rsvp-info-couple {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.rsvp-info-date {
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}

.rsvp-info-venue {
    font-size: 13px;
    color: #8e8e93;
}

/* ── 버튼 ── */
.rsvp-primary-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--ios-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: filter 0.15s;
    margin-bottom: 10px;
}

.rsvp-primary-btn:active { filter: brightness(0.88); }

.rsvp-dismiss-btn {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
}

/* ── 2단계 폼 ── */
.rsvp-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsvp-label {
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
    padding-left: 4px;
}

.rsvp-input {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: #1d1d1f;
    font-size: 15px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rsvp-input::placeholder { color: #c7c7cc; }
.rsvp-input:focus { box-shadow: 0 0 0 3px rgba(0,122,255,0.2); }

/* ── 세그먼트 컨트롤 ── */
.rsvp-seg {
    display: flex;
    gap: 0;
    background: rgba(118,118,128,0.12);
    border-radius: 10px;
    padding: 2px;
}

.rsvp-seg-btn {
    flex: 1;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.rsvp-seg-btn.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

@media (max-width: 430px) {
    body { background: #000; }
    .iphone-shell {
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }
    .app-window { border-radius: 0; }
}

@media (max-height: 720px) {
    .notification-card { top: 245px; }
    .lock-clock { font-size: 62px; }
    .home-widget { margin-top: calc(20px + var(--safe-top)); }
    .dock { min-height: 78px; }
    .lock-home-guide {
        min-height: calc(360px + var(--safe-bottom));
    }
}
