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

.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 20260917 happy] logo 168px — theme10 parity */
.site_logo a img,
.cont_bottom img[src*="logo"],
footer img[src*="logo.png"] {
	max-width: min(420px, 94vw) !important;
	max-height: 168px !important;
	height: auto !important;
	object-fit: contain !important;
}
@media screen and (max-width: 767px) {
	.site_logo a img {
		max-height: 108px !important;
		max-width: min(320px, 92vw) !important;
	}
}

/* [P-FIX 20260917 happy] 4-tab artwork — fallback reuse 1/2 until custom art */
.menu_tab li.hotelcasino:hover::before,
.menu_tab li.hotelcasino::before,
.menu_tab li.hotelcasino.active::before { background-image: url(../assets/images/content/tab_button3_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_button4_hover.png); }
.nav_menu .nav_item.nav_hotel span::before { background-image: url(../assets/images/content/icon_hotel.png); }
.nav_menu .nav_item.nav_machine span::before { background-image: url(../assets/images/content/icon_machine.png); }
.menu_tab ul.menuTab { display: flex; flex-wrap: nowrap; }
.menu_tab ul.menuTab li { flex: 1 1 0; min-width: 0; }


/* ============================================================
   [P-FIX 20260918 happy] 팝업 레이어 정리 — 입금/출금·공지·고객센터·이벤트·쪽지·마이페이지
   형태는 동일 스킨 데모(theme12)와 같게, 색은 common.css 포인트색(#fb0094)에 맞춤.
   ============================================================ */
/* 모달 크기: PC 600×800 고정(내부 스크롤) · 모바일 전체화면 */
.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%; }

@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;
	}
}

@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; }
/* 입출금·공지·CS 등(아이콘 없음): 단일 다크 입력창 */
.popup_box.depositLayer .form_area .form .form_text .input,
.popup_box.noticeLayer .form_area .form .form_text .input,
.popup_box.csCenterLayer .form_area .form .form_text .input,
.popup_box.csCenterinquireLayer .form_area .form .form_text .input,
.popup_box.eventLayer .form_area .form .form_text .input,
.popup_box.mypageLayer .form_area .form .form_text .input,
.popup_box.memoLayer .form_area .form .form_text .input {
	display: block; overflow: visible; position: static;
	padding: 0; height: auto; background: transparent; border-radius: 0;
}
.popup_box.depositLayer .form_area .form .form_text .input input,
.popup_box.depositLayer .form_area .form .form_text .input textarea,
.popup_box.noticeLayer .form_area .form .form_text .input input,
.popup_box.csCenterLayer .form_area .form .form_text .input input,
.popup_box.csCenterinquireLayer .form_area .form .form_text .input input,
.popup_box.csCenterinquireLayer .form_area .form .form_text .input textarea,
.popup_box.eventLayer .form_area .form .form_text .input input,
.popup_box.mypageLayer .form_area .form .form_text .input input,
.popup_box.memoLayer .form_area .form .form_text .input input {
	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.loginLayer .form_area .form .form_text .input,
.popup_box.joinLayer .form_area .form .form_text .input,
.popup_box.joinLayer2 .form_area .form .form_text .input,
.popup_box.joinFormLayer .form_area .form .form_text .input,
.popup_box.passwordLayer .form_area .form .form_text .input,
.popup_box.register .form_area .form .form_text .input {
	overflow: hidden;
	position: relative;
	display: block;
	padding: 0 35px 0 50px;
	width: 100%;
	height: 38px;
	background-color: #fff;
	border-radius: 4px;
}
.popup_box.passwordLayer .form_area .form .form_text .input { padding: 0 14px; }
.popup_box.loginLayer .form_area .form .form_text .input input,
.popup_box.joinLayer .form_area .form .form_text .input input,
.popup_box.joinLayer2 .form_area .form .form_text .input input,
.popup_box.joinFormLayer .form_area .form .form_text .input input,
.popup_box.passwordLayer .form_area .form .form_text .input input,
.popup_box.register .form_area .form .form_text .input input {
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	font-size: 1.4rem;
	background: transparent;
	color: #153858;
	text-align: left;
}
.popup_box.depositLayer .form_area .form .form_text .input input:focus,
.popup_box.depositLayer .form_area .form .form_text .input textarea:focus,
.popup_box.csCenterinquireLayer .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.loginLayer .form_area .form.input_value .form_text .input input,
.popup_box.joinLayer .form_area .form .form_text .input input,
.popup_box.joinLayer2 .form_area .form .form_text .input input,
.popup_box.joinFormLayer .form_area .form .form_text .input input,
.popup_box.passwordLayer .form_area .form .form_text .input input,
.popup_box.register .form_area .form .form_text .input input {
	background: transparent;
}

/* 버튼 그룹 */
.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: block; }

/* 표 (공지/CS/이벤트/쪽지 목록) */
.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; cursor:pointer; }
.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; }

/* 상세 본문 (공지·CS 답변·이벤트·문의작성) */
.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,
.popup_box.register .pop_tt { text-align:center; font-size:1.7rem; color:#fff; margin-bottom:16px; font-family: var(--font-ff-heading); }
#theme12-event-content, .eventLayer .message-content { color:#eee; font-size:1.35rem; line-height:1.8; }
#theme12-event-content img, .eventLayer img { max-width:100%; height:auto; border-radius:8px; }
#theme12-event-date { color:#e6c9da; }
#theme12-cs-detail-body, #theme12-notice-detail-body { max-height: 420px; }
#theme12-cs-detail-subject[readonly], #theme12-notice-detail-subject[readonly] { opacity: 1; }

/* 문의작성 textarea — 부모 고정높이에 잘리지 않게 */
.popup_box.csCenterinquireLayer .form_area .form { align-items: flex-start; }
.popup_box.csCenterinquireLayer .form_area .form .form_title { padding-top: 10px; }
.popup_box.csCenterinquireLayer .form_text .input textarea { min-height: 150px; resize: vertical; }

/* 쪽지(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; }
.memoLayer .layer_body .count-tag { display:inline-flex; min-width:26px; height:22px; align-items:center; justify-content:center; border-radius:999px; background:rgba(251,0,148,.18); color:#ffd0ea; }
.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; }

/* 관리자 HTML 본문(서머노트) 서식 — 다크 배경 대비 */
.popup_box .axon-rich-content { color:#eee; }
.popup_box .axon-rich-content a { color:#ff64b1; }
.popup_box .axon-rich-content img { max-width:100%; height:auto; }
.popup_box .axon-rich-content table { width:100%; border-collapse:collapse; }
.popup_box .axon-rich-content table th,
.popup_box .axon-rich-content table td { border:1px solid rgba(255,255,255,.14); padding:6px 8px; }


/* [P-FIX 20260918 happy p2] 문의작성 textarea — register 흰박스(38px) 규칙 무력화 */
.popup_box.csCenterinquireLayer .form_area .form .form_text .input {
	height: auto !important;
	overflow: visible !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
}
.popup_box.csCenterinquireLayer .form_area .form .form_text .input input,
.popup_box.csCenterinquireLayer .form_area .form .form_text .input textarea {
	width: 100%; 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.csCenterinquireLayer .form_area .form .form_text .input textarea {
	min-height: 150px; height: auto; resize: vertical; line-height: 1.6;
}

/* [20260918] CS 상세 답변칸 가로 100% — 마스터: 입력칸 가로가 너무 작음 */
.popup_box.csCenterLayer .form_area .form .form_textarea,
#theme12-cs-detail-body {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: rgba(0,0,0,.45);
	border: 1px solid rgba(251,0,148,.35);
	border-radius: 8px;
	color: #f5f5f7;
}

/* P-FIX 20260918 happy-cs-font — CS 상세·목록 본문 가독성 */
.popup_box.csCenterLayer #theme12-cs-detail-body,
.popup_box.csCenterLayer .cs_list_area,
.popup_box.csCenterLayer .qna_list,
.popup_box.csCenterinquireLayer .form_textarea,
.popup_box.csCenterinquireLayer textarea {
  font-size: 1.55rem !important;
  line-height: 1.65 !important;
}

/* [P-FIX 20260918 happy tap] hero slider copy is decorative (no links/onclick) — must not capture taps */
.main_slider .swiper_text,
.main_slider .swiper_text .g_txt,
.main_slider .swiper_text .g_txt_02,
.main_slider .swiper_text > span {
	pointer-events: none;
}
.main_slider .swiper-pagination {
	pointer-events: auto;
}
.ani_wrap,
.ani_wrap * {
	pointer-events: none;
}

@media screen and (max-width: 767px) {
	/* Logged-in: compact header action row visible without ☰ .open (full menu) */
	.logged-in .panel:not(.open) {
		max-height: 56px;
		overflow: hidden;
		z-index: 2002;
	}
	.logged-in .panel:not(.open) .gnb_menu .head_top .user_name {
		display: none;
	}
	.logged-in .panel:not(.open) .nav.navTop {
		display: none;
	}
	.logged-in .panel:not(.open) .head_top {
		padding-bottom: 4px;
		border-bottom: none;
	}
	.logged-in .head_top .after_login .btn,
	.logged-in .head_top .after_login a.btn {
		position: relative;
		z-index: 3;
		pointer-events: auto;
		min-width: 40px;
		min-height: 40px;
		padding: 8px 8px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		line-height: 1.2;
	}
	.logged-in .head_top .with-select-lang-box .after_login {
		gap: 4px;
		justify-content: space-evenly;
	}
}

