/**
 * theme17 — 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;
	}
}

/* ============================================================
   [P-FIX 20260711] 탭 롤오버 이미지 보강
   호텔카지노 = 라이브카지노(tab_button1_hover) · 카지노머신 = 슬롯게임(tab_button2_hover)
   ============================================================ */
.menu_tab li.hotelcasino:hover::before,
.menu_tab li.hotelcasino::before,
.menu_tab li.hotelcasino.active::before { background-image: url(../assets/images/content/tab_button1_hover.png); }
.menu_tab li.machinegame:hover::before,
.menu_tab li.machinegame::before,
.menu_tab li.machinegame.active::before { background-image: url(../assets/images/content/tab_button2_hover.png); }

/* ============================================================
   [P-FIX 20260711] 상단 카테고리 네비(nav_menu) 임시 숨김
   나중에 살릴 때는 이 블록만 삭제하면 즉시 복구됨 (마크업/JS 그대로 유지)
   ============================================================ */
.nav.navTop .nav_menu { display: none !important; }

/* ============================================================
   [P-FIX 20260711] Phase3 — 팝업 레이어 정리 (theme17 다크+마젠타 톤)
   입금/출금(depositLayer)·공지(noticeLayer)·고객센터(csCenter/inquire)·이벤트(eventLayer)·쪽지(memoLayer)
   ============================================================ */
/* 모달 크기: PC 600×800 고정(내부 스크롤) · 모바일 전체화면 100% */
.popup_box.depositLayer,
.popup_box.noticeLayer,
.popup_box.csCenterLayer,
.popup_box.csCenterinquireLayer,
.popup_box.eventLayer,
.popup_box.mypageLayer,
.popup_box.memoLayer { width: 600px; }

.popup_box .layer_content { padding: 22px 22px 24px; }
.popup_box .layer_head { margin-bottom: 14px; }
.popup_box .layer_head p,
.popup_box .layer_head .title { font-size: 1.7rem; }
.popup_box .layer_body { width: 100%; }

/* PC: 가로 600 · 세로 800 고정, 내용이 길면 내부 스크롤 */
@media screen and (min-width: 768px) {
	.popup_box.depositLayer.view,
	.popup_box.noticeLayer.view,
	.popup_box.csCenterLayer.view,
	.popup_box.csCenterinquireLayer.view,
	.popup_box.eventLayer.view,
	.popup_box.mypageLayer.view,
	.popup_box.memoLayer.view {
		width: 600px;
		height: min(800px, calc(100vh - 24px));
		max-height: min(800px, calc(100vh - 24px));
	}
	.popup_box.depositLayer .layer_content,
	.popup_box.noticeLayer .layer_content,
	.popup_box.csCenterLayer .layer_content,
	.popup_box.csCenterinquireLayer .layer_content,
	.popup_box.eventLayer .layer_content,
	.popup_box.mypageLayer .layer_content,
	.popup_box.memoLayer .layer_content {
		height: 100%;
		overflow-y: auto;
	}
}

/* 모바일: 가로·세로 100% (전체화면) */
@media screen and (max-width: 767px) {
	.popup_box.depositLayer.view,
	.popup_box.noticeLayer.view,
	.popup_box.csCenterLayer.view,
	.popup_box.csCenterinquireLayer.view,
	.popup_box.eventLayer.view,
	.popup_box.mypageLayer.view,
	.popup_box.memoLayer.view {
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: 100dvh;
		top: 0 !important;
		left: 0 !important;
		transform: none !important;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
	.popup_box.depositLayer .layer_content,
	.popup_box.noticeLayer .layer_content,
	.popup_box.csCenterLayer .layer_content,
	.popup_box.csCenterinquireLayer .layer_content,
	.popup_box.eventLayer .layer_content,
	.popup_box.mypageLayer .layer_content,
	.popup_box.memoLayer .layer_content {
		height: 100%;
		overflow-y: auto;
	}
}

/* 폼 */
.popup_box .form_area { display: flex; flex-direction: column; gap: 10px; }
.popup_box .form_area .form { display: flex; align-items: center; gap: 10px; }
.popup_box .form_area .form .form_title { flex: 0 0 78px; }
.popup_box .form_area .form .form_title h3 { font-size: 1.3rem; color: #ffd0ea; font-weight: 500; margin: 0; }
.popup_box .form_area .form .form_text { flex: 1 1 auto; min-width: 0; }
/* 기본 .input 래퍼의 흰 박스/패딩/높이 제거 → 입력창 이중 박스 겹침 해소 */
.popup_box .form_area .form .form_text .input {
	display: block; overflow: visible; position: static;
	padding: 0; height: auto; background: transparent; border-radius: 0;
}
.popup_box .form_area .form .form_text .input input,
.popup_box .form_area .form .form_text .input textarea {
	width: 100%; height: auto; box-sizing: border-box; background: rgba(0,0,0,.45);
	border: 1px solid rgba(251,0,148,.45); border-radius: 8px; color: #fff;
	padding: 10px 12px; font-size: 1.3rem; text-align: left;
}
.popup_box .form_area .form .form_text .input input:focus,
.popup_box .form_area .form .form_text .input textarea:focus { outline: none; border-color: #fb0094; }
.popup_box .form_area .form.input_value .form_text .input input { background: rgba(251,0,148,.10); }

/* 버튼 그룹 */
.popup_box .popup_button { display: flex; gap: 8px; margin-top: 10px; }
.popup_box .popup_button.btn_2 > * { flex: 1 1 0; min-width: 0; }
.popup_box .popup_button .btn {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	min-height: 42px; border-radius: 8px; cursor: pointer; font-size: 1.3rem;
	border: 1px solid transparent; transition: filter .15s, background .15s;
}
.popup_box .popup_button .btn.login_btn,
.popup_box .btn.login_btn { background: linear-gradient(135deg,#fb0094,#7a0048); color:#fff; border:0; }
.popup_box .popup_button .btn.login_btn:hover { filter: brightness(1.1); }
.popup_box .popup_button .btn.basic { background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(251,0,148,.4); }
.popup_box .popup_button .btn.basic:hover { background: rgba(251,0,148,.22); }
.popup_box .popup_button .btn.cancel { background: rgba(255,255,255,.06); color:#e6c9da; border:1px solid rgba(255,255,255,.16); }
.popup_box .popup_button .btn.cancel:hover { background: rgba(255,255,255,.12); }

/* 입금/출금·마이페이지 탭 */
.popup_box .basic_tab { display: flex; gap: 6px; margin-bottom: 14px; padding: 0; list-style: none; }
.popup_box .basic_tab li { flex: 1 1 0; list-style: none; }
.popup_box .basic_tab li button {
	width: 100%; padding: 10px 0; border-radius: 8px 8px 0 0; cursor: pointer;
	background: rgba(255,255,255,.06); color: #e6c9da; border: 0; font-size: 1.35rem;
}
.popup_box .basic_tab li.active button { background: linear-gradient(135deg,#fb0094,#7a0048); color:#fff; }
.popup_box .mypageContTab .cont_tab_area { display: none; }
.popup_box .mypageContTab .cont_tab_area.active { display: block; }

/* 표 (공지/CS/쪽지 목록) — flex 기반 */
.popup_box .popup_table { width: 100%; }
.popup_box .popup_table .table { display: flex; flex-direction: column; width: 100%; }
.popup_box .popup_table .tbody { display: block; max-height: 340px; overflow-y: auto; }
.popup_box .popup_table .thead,
.popup_box .popup_table .t_item { display: flex; align-items: center; }
.popup_box .popup_table .th,
.popup_box .popup_table .td {
	flex: 1 1 auto; min-width: 0; padding: 9px 6px; font-size: 1.25rem;
	border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; text-overflow: ellipsis;
}
.popup_box .popup_table .thead .th { color:#ffd0ea; background: rgba(251,0,148,.15); font-weight:600; text-align:center; border-bottom-color: rgba(251,0,148,.35); }
.popup_box .popup_table .td { color:#eee; }
.popup_box .popup_table .th:nth-child(1),
.popup_box .popup_table .td:nth-child(1) { flex: 0 0 42px; text-align:center; }
.popup_box .popup_table .th:nth-child(3),
.popup_box .popup_table .td:nth-child(3) { flex: 0 0 86px; text-align:center; white-space:nowrap; }
.popup_box .popup_table .td:nth-child(2) { text-align:left; white-space:nowrap; }
.popup_box .popup_table .td a { color:#fff; text-decoration:none; }
.popup_box .popup_table .td a:hover { color:#fb0094; }
.popup_box .popup_table .td.empty { flex:1 1 auto; text-align:center; color:#bbb; padding:22px 0; }

/* 공지 상세 / 이벤트 / 문의작성 본문 */
.popup_box .cont_write_area { margin-top: 4px; }
.popup_box .form_textarea { background: rgba(0,0,0,.35); border: 1px solid rgba(251,0,148,.35); border-radius: 8px; color:#eee; font-size:1.3rem; line-height:1.75; }
.popup_box .register .pop_tt { text-align:center; font-size:1.7rem; color:#fff; margin-bottom:16px; font-family: var(--font-ff-heading); }
#theme17-event-content, .eventLayer .message-content { color:#eee; font-size:1.35rem; line-height:1.8; }
#theme17-event-content img, .eventLayer img { max-width:100%; height:auto; border-radius:8px; }
#theme17-event-date { color:#e6c9da; }

/* 쪽지(memoLayer) — 주입된 modal 콘텐츠 정리 */
.memoLayer .layer_body .modal-header,
.memoLayer .layer_body .modal-footer { display: none; }
.memoLayer .layer_body table { width:100%; border-collapse:collapse; }
.memoLayer .layer_body table th,
.memoLayer .layer_body table td { padding:9px 6px; border-bottom:1px solid rgba(255,255,255,.08); font-size:1.25rem; color:#eee; text-align:center; }
.memoLayer .layer_body table th { color:#ffd0ea; background:rgba(251,0,148,.15); }
.memoLayer .layer_body .title-td { text-align:left; cursor:pointer; }
.memoLayer .layer_body .title-td:hover { color:#fb0094; }
.memoLayer .layer_body .message-content,
.memoLayer .layer_body #message-detail { color:#eee; font-size:1.35rem; line-height:1.8; padding:4px 2px; }
.memoLayer .layer_body .message-content img { max-width:100%; height:auto; }
.memo-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#fb0094; margin-right:6px; vertical-align:middle; }
.memoLayer .t12-memo-foot { display:flex; gap:8px; margin-top:14px; }
.memoLayer .t12-memo-foot .btn { flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; min-height:42px; border-radius:8px; cursor:pointer; font-size:1.3rem; border:0; }
.memoLayer .t12-memo-foot .btn.cancel { background:rgba(255,255,255,.08); color:#e6c9da; }
.memoLayer .t12-memo-foot .btn.login_btn { background:linear-gradient(135deg,#fb0094,#7a0048); color:#fff; }
