/**
 * theme12 — web04 헤더·히어로 보정 (데스크톱 head_top 가로 레이아웃, 로그인 후)
 */

/* 히어로: 장식 이미지가 프레임(bg_frame) 위에 보이도록 */
.main_slider {
	position: relative;
}

.main_slider .swiper {
	position: relative;
	z-index: 1;
}

.main_slider .ani_wrap {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: visible;
}

.main_slider_bg {
	z-index: 2;
	pointer-events: none;
}

.main_slider .swiper_text {
	position: relative;
	z-index: 4;
}

/* 데스크톱·태블릿: web04 원본 — head_top 한 줄 (40px) */
@media screen and (min-width: 768px) {
	.logged-in .head_top {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		height: 40px;
		width: 100%;
	}

	.logged-in .head_top .user_name {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		gap: 1rem;
		width: auto;
		flex: 1 1 auto;
	}

	.logged-in .head_top .with-select-lang-box {
		flex-shrink: 0;
	}

	.logged-in .head_top .with-select-lang-box .after_login {
		display: inline-flex;
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: clamp(8px, 2vw, 40px);
		width: auto;
	}

	.logged-in .head_top .cashpoint {
		flex-wrap: nowrap;
	}

	.logged-in .header {
		height: auto;
		min-height: 115px;
	}

	.logged-in .section.content-box {
		padding-top: 125px;
	}

	.logged-in .head_top .user_name {
		font-size: 1.2rem;
	}

	.logged-in .head_top .cashpoint > span {
		font-size: 1.2rem;
		white-space: nowrap;
	}
}

/* 모바일: GNB 패널 내 세로 정렬 (web04) */
@media screen and (max-width: 767px) {
	.logged-in .head_top .user_name {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.75rem;
		width: 100%;
	}

	.logged-in .head_top .with-select-lang-box .after_login {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		width: 100%;
	}

	.header .header_container {
		min-height: 60px;
	}

	.site_logo {
		top: 4px;
	}

	.panel-overlay {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 1998;
		background: rgba(0, 0, 0, 0.55);
	}

	.panel.open ~ .panel-overlay,
	.panel-overlay.is-visible {
		display: block;
	}
}

/* 게임 카드 */
.game_list ul li .img_wrap {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 120px;
}

/* 섹션 너비 */
.section.content-box .section_inner,
.cont_bottom_inner {
	max-width: 1310px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

@media screen and (max-width: 767px) {
	.main_slider .swiper_text {
		padding: 0 16px;
	}

	.menu_tab ul.menuTab {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.board_wrap {
		flex-direction: column;
	}
}
