* { box-sizing: border-box; }
html { background: #ffed5b; }
body { margin: 0; color: #33203c; font-family: Arial, 'Malgun Gothic', sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
#invitation { width: 100%; max-width: 800px; margin: 0 auto; }
.page { position: relative; width: 100%; container-type: inline-size; isolation: isolate; }
.page-image { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; display: block; padding: 0; border: 0; background: transparent; z-index: 4; }
.hotspot:focus-visible, .fixed-button:focus-visible { outline: 3px solid #452198; outline-offset: 3px; }
.fixed-button { position: fixed; z-index: 30; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #d6bb56; background: rgba(255,250,223,.94); color: #6238a3; border-radius: 50%; }
.fixed-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-button { top: max(12px, env(safe-area-inset-top)); left: max(12px, calc((100vw - 800px) / 2 + 12px)); }
.music-button { bottom: max(16px, env(safe-area-inset-bottom)); right: max(12px, calc((100vw - 800px) / 2 + 12px)); }
.music-button[aria-pressed="true"] { color: #fff; background: #8641d5; border-color: #8641d5; }
.music-button[aria-pressed="true"] .music-slash { display: none; }
.kakaomap { position: absolute; z-index: 0; left: 12.407407%; top: 36.796083%; width: 75.185185%; height: 16.019587%; background: #f8f6eb; border-radius: 3.2%; overflow: hidden; }
#map { width: 100%; height: 100%; }
.map-frame { position: relative; z-index: 1; pointer-events: none; -webkit-mask: url('../images/map-mask.svg') 0 0 / 100% 100%; mask: url('../images/map-mask.svg') 0 0 / 100% 100%; }
#map-fallback { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; background: #fff8e8; color: #63359c; font-size: 16px; z-index: 5; }
.map-label { background: #fff; border: 1px solid #8845cb; padding: 5px 8px; color: #4b266c; font-size: 12px; font-weight: bold; white-space: nowrap; }
#seat-search { position: absolute; left: 17.5%; top: 29.35%; width: 67.3%; height: 3%; display: flex; z-index: 5; }
#seat-search input { width: 79.5%; min-width: 0; border: 0; border-radius: 0; outline: none; background: #fff; color: #55418c; padding: 0 2%; font-weight: 600; font-size: clamp(12px, 4cqw, 32px); }
#seat-search input::placeholder { color: #827cb8; opacity: 1; }
#seat-search button { width: 20.5%; border: 0; background: transparent; }
#seat-search:focus-within { outline: 2px solid #6a51ff; outline-offset: 3px; border-radius: 8px; }
.seat-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.seat-number { position: absolute; width: 6.75%; aspect-ratio: 1; border-radius: 50%; background: #f1f0ed; color: #7542ac; font-size: 4.1cqw; font-weight: 800; line-height: 1; display: flex; justify-content: center; align-items: center; transform: translate(-50%, -50%); }
.seat-number.selected { background: #7542ac; color: #f7eaff; }
dialog { width: min(92vw, 440px); max-height: 90dvh; padding: 20px; border: 2px solid #8b43d4; border-radius: 12px; background: #fff9ef; color: #442563; }
dialog::backdrop { background: rgba(25,14,41,.65); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; font-size: 20px; }
.dialog-head button { border: 0; background: transparent; color: #633997; font-size: 30px; padding: 0 4px; line-height: 1; }
#seat-result { font-size: 18px; line-height: 1.7; white-space: pre-line; }
.confirm-button, .seat-choice { background: #8341ce; color: white; border: 0; padding: 12px 18px; margin-top: 16px; font-weight: bold; border-radius: 6px; }
.confirm-button { width: 100%; }
.seat-choice { margin: 12px 8px 0 0; }
#zoom-dialog { width: min(94vw, 700px); padding: 16px; }
.zoom-scroll { max-height: 75dvh; overflow: auto; overscroll-behavior: contain; }
.zoom-plan { width: 620px; margin: 0 auto; padding: 25px 20px; background: #fff8ee; }
.stage { width: 300px; padding: 12px; margin: 0 auto 30px; text-align: center; background: #8167f4; color: #fff; font-size: 30px; font-weight: bold; border-radius: 12px; }
#zoom-seats { display: grid; grid-template-columns: repeat(4, 110px); justify-content: space-between; gap: 22px 0; }
.zoom-seat { width: 110px; height: 110px; }
.zoom-seat svg { width: 100%; height: 100%; }

/* 선물 수령 안내: 초청장의 흰색 카드·노란 점선·보라색 장식을 유지합니다. */
html.gift-popup-open { overflow: hidden; }
#gift-dialog {
	width: min(94vw, 600px);
	max-width: calc(100% - 20px);
	max-height: 92dvh;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #714712;
	overflow: auto;
}
#gift-dialog::backdrop { background: rgba(43, 28, 13, .56); }
.gift-card { position: relative; width: 100%; }
.gift-card-art { display: block; width: 100%; height: auto; }
#gift-message {
	position: absolute;
	inset: 40% 9% 12%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	text-align: center;
	font-size: clamp(18px, 4.7vw, 30px);
	font-weight: 900;
	line-height: 1.7;
	letter-spacing: -.04em;
	word-break: keep-all;
}
.gift-close {
	position: absolute;
	top: 31.5%;
	right: 7.7%;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 8px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #8a3fda;
}
.gift-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gift-close:focus-visible { outline: 2px solid #8a3fda; outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
	#gift-dialog[open] .gift-card { animation: gift-enter .18s ease-out; }
	@keyframes gift-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
