* {
	box-sizing: border-box;
}

html {
	background: #080d15;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	width: 100%;
	max-width: 668px;
	margin: 0 auto;
	background: #0a101a;
	color: #fff;
	font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

button, a {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

button {
	font: inherit;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: 100%;
	padding-bottom: calc(89px + env(safe-area-inset-bottom, 0px));
}

.imagemap {
	position: relative;
	width: 100%;
	line-height: 0;
}

.imagemap > img {
	display: block;
	width: 100%;
	height: auto;
}

.image-link {
	position: absolute;
	display: block;
}

/* 원본 지도: x=83, y=2384, width=502, height=250 */
.map-link {
	left: 12.425%;
	top: 84.749%;
	width: 75.15%;
	height: 8.887%;
}

/* 두 연락처는 서로 겹치지 않게 각 행에 맞춥니다. */
.contact-one, .contact-two {
	left: 20%;
	width: 60%;
	height: 1.244%;
}

.contact-one {
	top: 94.067%;
}

.contact-two {
	top: 95.311%;
}

.nav {
	position: fixed;
	left: 50%;
	bottom: 0;
	z-index: 20;
	transform: translateX(-50%);
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	width: 100%;
	max-width: 668px;
	padding: 7px 5px calc(7px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #ae8050;
	background: #0e1724;
}

.nav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 74px;
	margin: 0;
	padding: 5px 1px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #f4dfb7;
	text-align: center;
}

.nav-link + .nav-link {
	border-left: 1px solid rgba(235, 193, 132, .18);
}

.nav-link > svg {
	display: block;
	width: 25px;
	height: 25px;
	flex: 0 0 auto;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nav-text {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.nav-role {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: #d5c9b8;
}

.nav-link[aria-pressed="true"] {
	color: #ffd492;
}

.nav-link[aria-pressed="true"] .music-slash {
	display: none;
}

.nav-link[aria-busy="true"] .music-note {
	animation: music-loading 1s ease-in-out infinite alternate;
}

@media (hover: hover) {
	.nav-link:hover {
		background: #1e293a;
	}
}

.nav-link:focus-visible, .hint-close:focus-visible, .image-link:focus-visible {
	outline: 2px solid #f7bf76;
	outline-offset: -3px;
}

#invitation:focus {
	outline: none;
}

body.is-hint-open {
	overflow: hidden;
}

.hint-dialog {
	width: calc(100% - 40px);
	max-width: 360px;
	max-height: calc(100dvh - 40px);
	padding: 28px 22px 22px;
	border: 1px solid #bd915e;
	border-radius: 0;
	background: #fbf8f2;
	color: #182131;
	text-align: center;
}

.hint-dialog::backdrop {
	background: rgba(0, 0, 0, .72);
}

.hint-mark {
	width: 40px;
	height: 52px;
	margin: 0 auto 14px;
	color: #ad7838;
}

.hint-mark svg {
	width: 100%;
	height: 100%;
}

.scroll-line {
	animation: scroll-hint 1.6s ease-in-out infinite;
}

.hint-dialog h1 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
}

.hint-dialog p {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.7;
	word-break: keep-all;
}

.hint-close {
	width: 100%;
	min-height: 48px;
	padding: 12px;
	border: 0;
	border-radius: 0;
	background: #122033;
	color: #fff3df;
	font-size: 16px;
	font-weight: 600;
}

.music-status {
	position: fixed;
	left: 50%;
	bottom: calc(102px + env(safe-area-inset-bottom, 0px));
	z-index: 30;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(90%, 570px);
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #bd915e;
	background: #172131;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	word-break: keep-all;
}

.noscript-message {
	margin: 0;
	padding: 16px 16px 110px;
	font-size: 16px;
	line-height: 1.5;
}

@keyframes scroll-hint {
	0%, 100% { transform: translateY(-2px); }
	50% { transform: translateY(2px); }
}

@keyframes music-loading {
	from { opacity: .4; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.scroll-line, .nav-link[aria-busy="true"] .music-note {
		animation: none;
	}
}
