section {
	margin-bottom: 10px;
}

.main-cards {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
}

/* 공통 카드 */
.card {
	position: relative;
	width: 100%;
	border: none;
	border-radius: 16px;
	overflow: hidden;
	background: none;
	padding: 0;
	text-align: left;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 10px;
}

.card-half {
	justify-content: flex-end;
}

/* 배경 */
.card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(0.9);
}

.bg-intro {
	background-image: linear-gradient(to left, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 50%), url('/assets/img/ui/intro-bg.webp');
}

.bg-festival {
	background-image: linear-gradient(to left, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 50%), url('/assets/img/ui/festival-bg.webp');
}

.bg-schedule {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 50%), url('/assets/img/ui/schedule-bg.webp');
}

.bg-map {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 50%), url('/assets/img/ui/map-bg.webp');
}

/* 앞 콘텐츠 */
.card-content {
	width: 100%;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	color: var(--c-text);
	gap: 10px;
}

.card-half .card-content {
	flex-direction: row;
}

/* 크기 */
.card-wide {
	min-height: 96px;
}

.card-half {
	height: 96px;
	background-color: var(--c-bg);
}

/* 2열 */
.card-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* 텍스트 */
.card .text {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex-direction: column;
}

.card h3 {
	width: fit-content;
	font-size: 1rem;
	margin: 0;
	color: var(--c-bg);
	padding: 0 5px;
}

.card p {
	width: fit-content;
	font-size: 0.8rem;
	margin: 2px 0 0;
	color: var(--c-bg);
	padding: 0 5px;
}

.card-half h5,
.card-half p {
	color: var(--c-bg);
}

/* 아이콘 */
.card img {
	width: 36px;
	height: 36px;
}

/* 터치 피드백 */
.card:active {
	transform: scale(0.98);
}

.notice {
	width: 100%;
	background: var(--c-bg);
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 26px 16px;
}

.notice h4 {
	width: 100%;
	text-align: left;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--c-text);
}

.notice #notice {
	width: 100%;
}

#notice .notice-line {
	width: 100%;
	padding: 10px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid var(--c-border);
}

#notice .title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: normal;
}

#notice .date {
	color: var(--c-text-sub);
	opacity: 0.8;
}

.notice .notice-more {
	width: 100%;
	margin-top: 10px;
	padding: 6px;
	border-radius: 10px;
	border: 1px solid var(--c-border);
	letter-spacing: 0.1rem;
}

#sponsor {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	background-color: var(--c-bg);
	overflow-x: hidden;
	padding: 10px 0px;
}

#sponsor p {
	opacity: 0.8;
	width: fit-content;
	font-size: 0.6rem;
	padding: 3px 10px;
	font-weight: bold;
	color: steelblue;
}

.sponsor-slide {
	height: 32px;
	overflow: hidden;
	width: 100%;
	margin-top: -5px;
}

.sponsor-track {
	display: flex;
	height: 100%;
	width: max-content;
	animation: sponsor-scroll 30s linear infinite;
}

.sponsor-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

@keyframes sponsor-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

#sponsor .sponsor-group img {
	height: 90%;
}

#sponsor .sponsor-main {
	width: 100%;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#sponsor .sponsor-main img {
	height: 90%;
	width: auto;
}

nav {
	position: fixed;
	left: 0;
	bottom: var(--banner-h);
	width: 100%;
	height: var(--footer-h);
	z-index: 2;
}

nav svg {
	position: absolute;
	top: -2px;
	left: 50%;
	width: 28%;
	height: 180%;
	transform: translateX(-50%) scale(0);
	transform-origin: top;
	transition: transform 0.5s ease-in-out;
	z-index: 4;
	background: transparent;
}

nav .nav-items {
	position: relative;
	z-index: 3;
	width: 100%;
	height: var(--footer-h);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: center;
	justify-items: center;
	border-radius: 24px 24px 0 0;

	border-top: 1px solid var(--c-border);
	background: var(--c-bg);
}

nav .nav-items .nav-item {
	position: relative;
	z-index: 99;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	gap: 2px;
	width: 100%;
	height: 100%;
	padding-top: 5px;
	transition: all 1s ease;
}

nav .nav-items img {
	width: 20px;
}

nav .nav-item > * {
	transform: scale(0.95);
	opacity: 0.5;
}

nav .nav-items .active > * {
	transform: scale(1);
	opacity: 1;
}

nav .up-card {
	position: absolute;
	top: 5px;
	transform: translateY(0);
	width: 100%;
	height: 54px;
	background: var(--c-primary);
	color: #fff;
	border-radius: 24px 24px 0 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	font-weight: 700;
	z-index: 2;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .up-card h4 {
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

nav .nav-items {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav svg.up-ani {
	animation: ani-svg 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

nav svg.down-ani {
	animation: ani-svg 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards reverse;
}

@keyframes ani-svg {
	0% {
		transform: translateX(-50%) scale(0);
	}
	100% {
		transform: translateX(-50%) scale(1);
	}
}

nav .center > span.up-ani {
	animation: fade 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

nav .center > span.down-ani {
	animation: fade 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards reverse;
}

@keyframes fade {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

nav .up-card.up-ani {
	animation: up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

nav .up-card.down-ani {
	animation: up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards reverse;
}

@keyframes up {
	0% {
		transform: translateY(0);
		height: 50px;
	}
	100% {
		transform: translateY(-50px);
		height: 80px;
	}
}

nav .line.up-ani {
	position: absolute;
	width: 24px;
	height: 2px;
	top: 35%;
	border-radius: 100%;
	background-color: #f00;
	transition: all 0.5s ease-in forwards;
}

#popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.popup-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.popup-box {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 360px;
	background: var(--c-bg);
	border-radius: 10px;
	overflow: hidden;
}

.popup-box > img {
	width: 100%;
	height: auto;
	display: block;
}

.popup-title {
	padding: 12px;
}

.popup-desc {
	padding: 6px 12px;
}

.popup-actions {
	display: flex;
	border-top: 1px solid #eee;
}

.popup-actions button {
	flex: 1;
	padding: 12px;
	border: none;
	background: #fff;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.popup-actions button:last-child {
	justify-content: flex-end;
}

.download-modal {
	width: 100%;
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding-bottom: 25px;
}

.download-modal p {
	width: 100%;
	text-indent: 10px;
}

.download-modal button {
	width: 100%;
	max-width: 360px;
	height: 70px;
	background-color: var(--c-text);
	border: 2px inset silver;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 20px;
}

.download-modal img {
	height: auto;
	width: 50px;
}

.download-modal .brand {
	width: 60%;
	height: 90%;
}

.download-modal .brand > * {
	color: var(--c-bg);
	display: flex;
	justify-content: space-between;
}
