:root {
    --navy: #17232d;
    --deep: #111a22;
    --gold: #e2a000;
    --gold-light: #ffd969;
    --line: rgba(226,160,0,.62)
}

* {
    box-sizing: border-box
}

html,body {
    min-height: 100%;
    background: var(--deep)
}

body {
    margin: 0;
    color: #fff;
    font-family: Arial,"Noto Sans KR",sans-serif
}

.site-shell {
    background: radial-gradient(circle at 50% 18%,#223541 0,var(--navy) 35%,var(--deep) 100%)
}

.page-section {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px
}

.btn-gold {
    color: #fff;
    border: 1px solid #edae12;
    background: linear-gradient(135deg,#edae12,#bd7300);
    font-weight: 700
}

.btn-gold:hover,.btn-gold:focus {
    color: #fff;
    border-color: var(--gold-light);
    background: linear-gradient(135deg,#ffc139,#ce7d00);
    box-shadow: 0 0 0 .2rem rgba(226,160,0,.2)
}

.hero {
    width: 100%;
    height: 28vw;
    min-height: 280px;
    max-height: 70vh;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0a1015;
    box-shadow: 0 16px 45px rgba(0,0,0,.28)
}

.hero .carousel-item img {
    object-fit: cover
}

.hero-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,rgba(7,12,17,.05),rgba(7,12,17,.05) 64%,rgba(7,12,17,.86))
}

.hero-logo {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: clamp(230px,32vw,440px);
    height: auto;
    transform: translate(-50%,-47%);
    filter: drop-shadow(0 12px 10px rgba(0,0,0,.6));
    pointer-events: none
}

.hero .carousel-control-prev,.hero .carousel-control-next {
    z-index: 3;
    width: 8%
}

.hero .carousel-control-prev-icon,.hero .carousel-control-next-icon {
    width: 2.6rem;
    height: 2.6rem;
    filter: none
}

.hero .carousel-indicators {
    z-index: 3
}

.hero .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%
}

.hero .carousel-indicators .active {
    background-color: #0d8cff;
    box-shadow: 0 0 10px #0d8cff
}

.category-row {
    padding-left: 0;
    list-style: none
}

/* ========================================
   라이브/슬롯 공통 버튼
======================================== */

.category-card {
  width: 100%;
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  color: #0b1e3b;
  border: 1px solid #707985;

  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 900;

  cursor: pointer;

  clip-path: polygon(
    3% 0,
    100% 0,
    97% 100%,
    0 100%
  );

  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card i {
  font-size: 1.1em;
}

/* ========================================
   선택되지 않은 버튼
   active 클래스가 없으면 은색
======================================== */

.category-card:not(.active),
.category-card.live:not(.active),
.category-card.slot:not(.active) {
  color: #0b1e3b;

  background: linear-gradient(
    105deg,
    #242b35 0%,
    #8f9194 11%,
    #d8d8d8 28%,
    #ffffff 50%,
    #d6d6d6 73%,
    #96989b 89%,
    #252c36 100%
  );

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    0 5px 15px rgba(0, 0, 0, 0.18);

  filter: brightness(0.94);
}

/* ========================================
   선택된 버튼
   active 클래스가 있으면 노란색
======================================== */

.category-card.active,
.category-card.live.active,
.category-card.slot.active {
  color: #0b1e3b;
  transform: translateY(-3px);
  background: linear-gradient(
    105deg,
    #18253b 0%,
    #8a642f 8%,
    #f2a72f 21%,
    #fff4a6 50%,
    #f6a72d 79%,
    #8a6231 92%,
    #18253b 100%
  );

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.75),
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(255, 195, 54, 0.15);

  filter: brightness(1.08);
}

/* 마우스를 올렸을 때 */
.category-card:hover {
  filter: brightness(1.08);
}

.category-card.active:hover {
  filter: brightness(1.13);
}

/* 키보드 포커스 */
.category-card:focus-visible {
  outline: 2px solid #ffd659;
  outline-offset: 3px;
}

/* 모바일 */
@media (max-width: 767.98px) {
  .category-card {
    min-height: 76px;
    gap: 12px;

    font-size: 23px;

    clip-path: polygon(
      2% 0,
      100% 0,
      98% 100%,
      0 100%
    );
  }
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(clamp(145px,10.5vw,230px),1fr));
    gap: clamp(10px,1vw,20px)
}

.casino-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(34,154,255,.55);
    border-radius: 8px;
    background: #1c2934;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    transition: .22s ease
}

.casino-card img {
    display: block;
    width: 100%;
    aspect-ratio: 240/250;
    object-fit: cover
}

.casino-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 5px 8px;
    background: linear-gradient(transparent,rgba(7,12,17,.94));
    font-weight: 800;
    opacity: 0;
    transition: opacity .2s ease
}

.casino-card:hover,.casino-card:focus-visible {
    transform: translateY(-6px);
    border-color: #ffc547;
    box-shadow: 0 14px 30px rgba(0,0,0,.4),0 0 18px rgba(20,149,255,.18)
}

.casino-card:hover span,.casino-card:focus-visible span {
    opacity: 1
}

.empty-panel {
    color: #b9c6cf;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(0,0,0,.15)
}

.empty-panel i {
    color: var(--gold);
    font-size: 3rem
}

.footer-image {
    width: min(100%,900px);
    height: auto;
    opacity: .92
}

.modal-content.login-modal {
    color: #fff;
    border: 1px solid rgba(226,160,0,.6);
    border-radius: 16px;
    background: #172630
}

.eyebrow {
    color: var(--gold-light);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em
}

.login-modal .form-control {
    color: #fff;
    border-color: #41515e;
    background: #101b23
}

.login-modal .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(226,160,0,.16)
}

.login-modal .form-control::placeholder {
    color: #74838e
}

.captcha-wrap{display:grid;grid-template-columns:1fr 52px;gap:8px;height:52px}.captcha-image{display:flex;align-items:center;justify-content:center;overflow:hidden;color:#17232d;border:1px solid #d1b766;border-radius:8px;background-color:#f5edce;background-image:repeating-linear-gradient(25deg,transparent 0 8px,rgba(178,132,20,.16) 9px 10px);font-family:Georgia,"Times New Roman",serif;font-size:1.65rem;font-weight:900;font-style:italic;letter-spacing:.32em;text-indent:.32em;text-shadow:1px 1px #fff;user-select:none}.captcha-refresh{color:#ffd969;border:1px solid #596b78;background:#101b23;font-size:1.35rem}.captcha-refresh:hover,.captcha-refresh:focus{color:#fff;border-color:#e2a000;background:#253641}


.site-toast {
    color: #17232d;
    border-left: 5px solid #bd7300;
    background: #fff7da;
    font-weight: 700
}

@media(max-width: 767.98px) {
    .page-section {
        padding-left:12px;
        padding-right: 12px
    }

    .hero {
        height: 62vw;
        min-height: 250px;
        max-height: 390px
    }

    .hero-logo {
        width: 56vw
    }

    .category-card {
        min-height: 76px;
        clip-path: none;
        border-radius: 7px;
        font-size: 1.45rem
    }

    .casino-grid {
        grid-template-columns: repeat(auto-fit,minmax(135px,1fr));
        gap: 12px
    }

    .casino-card span {
        position: static;
        display: block;
        padding: 8px 4px;
        opacity: 1;
        background: #182630;
        font-size: .82rem
    }
}

@media(max-width: 419.98px) {
    .hero {
        height:68vw;
        min-height: 225px
    }

    .casino-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior: auto!important;
        transition: none!important
    }
}


/* ================================
   �α��� �� ȸ�� ���
================================ */

.member-header {
  position: sticky;
  top: 0;
  z-index: 9;

  width: 100%;
  min-height: 52px;

  background: #1c2633;
  color: #ffffff;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.member-header *,
.member-header *::before,
.member-header *::after {
  box-sizing: border-box;
}

.member-header-inner {
  width: 100%;
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 12px;
  padding: 7px 22px;

  white-space: nowrap;
}

/* ���� ������ ���� */
.member-tools {
  display: flex;
  align-items: center;
  gap: 11px;
}

.member-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 28px;
  padding: 0;

  color: #ffffff;
  border: 0;
  background: transparent;

  font-size: 14px;
  line-height: 1;

  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.member-icon-btn:hover {
  color: #edca57;
  transform: translateY(-1px);
}

/* ȸ�� ���� ���� */
.member-summary {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 15px;
  line-height: 1;
}

.member-id {
  color: #edca57;
  font-weight: 800;
}

.balance-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.balance-label {
  color: #edefef;
  font-weight: 700;
}

.balance-value {
  color: #36fb89;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ��ư ���� */
.member-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-btn {
  min-width: 100px;
  height: 34px;
  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: #ffffff;
  border: 0;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.member-btn:hover {
  color: #ffffff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.member-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-memo {
  background: linear-gradient(135deg, #886600, #b68800);
  box-shadow: 0 4px 10px rgba(230, 184, 0, 0.25);
}

.btn-notice {
  color: #fff;
  background: linear-gradient(135deg, #ff9f32, #e66a00);
  box-shadow: 0 4px 10px rgba(230, 106, 0, 0.25);
}

.btn-comp {
  background: linear-gradient(135deg, #25b957, #09903b);
  box-shadow: 0 4px 10px rgba(9, 144, 59, 0.22);
}

.btn-history {
  background: linear-gradient(135deg, #665cf1, #4c43c7);
  box-shadow: 0 4px 10px rgba(76, 67, 199, 0.22);
}

.btn-logout {
  min-width: 120px;

  background: linear-gradient(135deg, #16afd1, #087fa3);
  box-shadow: 0 4px 10px rgba(8, 127, 163, 0.22);
}

.btn-logout i {
  font-size: 18px;
}

/* ================================
   �º���
================================ */

@media (max-width: 991.98px) {
  .member-header-inner {
    gap: 9px;
    padding: 8px 12px;
  }

  .member-summary {
    gap: 9px;
    font-size: 14px;
  }

  .member-actions {
    gap: 7px;
  }

  .member-btn {
    min-width: auto;
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .btn-logout {
    min-width: auto;
  }
}

/* ================================
   �����
================================ */

@media (max-width: 767.98px) {
  .member-header-inner {
    min-height: auto;

    flex-wrap: wrap;
    justify-content: flex-end;

    row-gap: 8px;
    padding: 9px 10px;
  }

  .member-tools {
    order: 1;
  }

  .member-summary {
    order: 2;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .member-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }

  .member-btn {
    flex: 0 1 auto;
    min-width: 82px;
  }
}

/* ���� ����� */
@media (max-width: 480px) {
  .member-header-inner {
    justify-content: center;
  }

  .member-tools {
    display: none;
  }

  .member-summary {
    width: 100%;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
  }

  .member-actions {
    justify-content: center;
    gap: 6px;
  }

  .member-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 7px;
    font-size: 12px;
  }

  .btn-logout i {
    font-size: 15px;
  }
}

.iss-invalid {
  border-color: #dbc85d;
}


/* 화면의 80% 크기 */
.frame-modal-dialog {
  width: 80vw;
  height: 80vh;
  max-width: none;
  margin: auto;
}

.frame-modal-content {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #17232d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.frame-modal-content .modal-header {
  flex: 0 0 auto;
  color: #fff;
  background: #121d26;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.frame-modal-content .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.frame-modal-content iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* 모바일에서는 화면을 조금 더 넓게 사용 */
@media (max-width: 767.98px) {
  .frame-modal-dialog {
    width: 94vw;
    height: 90vh;
  }

  .frame-modal-content {
    height: 90vh;
  }

  .frame-modal-content .modal-header {
    padding: 0.75rem 1rem;
  }
}



/* 모달을 사이트의 모든 요소보다 앞에 표시 */
#frameModal {
  --bs-modal-zindex: 2147483000;

  z-index: 2147483000 !important;
}

/* 모달 뒤 어두운 배경 */
.modal-backdrop {
  #z-index: 2147482990 !important;
  #background-color: #000;
}

.modal-backdrop.show {
  opacity: 0.75;
}

/* 모달을 화면 하단에 가깝게 배치 */
#frameModal .frame-modal-dialog {
  display: flex;
  align-items: flex-end;

  width: 80vw;
  max-width: none;
  height: 80vh;
  min-height: calc(100% - 20px);

  margin: 0 auto 10px !important;
}

/* 실제 모달 상자 */
#frameModal .frame-modal-content {
  width: 100%;
  height: 80vh;

  overflow: hidden;
  background: #101c25;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.75);
}

/* 제목 영역 */
#frameModal .modal-header {
  flex: 0 0 auto;
  min-height: 58px;
  color: #fff;
  background: #101c25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* iframe 영역 */
#frameModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#frameModalIframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #101c25;
}

@media screen and (max-width: 767.98px) {
  #frameModal .frame-modal-dialog {
    width: 96vw;
    height: 90vh;
    min-height: calc(100% - 8px);
    margin: 0 auto 4px !important;
  }

  #frameModal .frame-modal-content {
    height: 90vh;
    border-radius: 7px 7px 3px 3px;
  }

  #frameModal .modal-header {
    min-height: 50px;
    padding: 10px 14px;
  }

  #frameModal .modal-title {
    font-size: 16px;
  }
}


/* =============================================================================================================== */

/* 전체 */
.popup-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}

/* 배경 */
.popup-bg {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
}

.popup-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 420px;            /* 🔥 기존 320 → 420 */
	max-width: 90%;
	background: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba(0,0,0,0.8);
	color: #fff;
	overflow: hidden;
}

/* 헤더 */
.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	background: #111;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.popup-header span {
	font-size: 16px;
	font-weight: bold;
}

.popup-header button {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}

.popup-body {
	padding: 20px;
	font-size: 1.3rem;
}

.popup-table {
	width: 100%;
	border-collapse: collapse;
}


.popup-table th,
.popup-table td {
	padding: 12px 0;
	font-size: 15px;
}

/* 푸터 */
.popup-footer {
	padding: 10px;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,0.1);
}

.popup-close-btn {
	padding: 8px 20px;
	border-radius: 20px;
	border: 1px solid #ff2e7e;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: 0.3s;
}

.popup-close-btn:hover {
	background: #ff2e7e;
}

.popup-close-btn2 {
	padding: 10px 22px;
	border-radius: 30px;
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.05);
	color: #fff;
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: all 0.3s;
}

.popup-close-btn2:hover {
	background: rgba(255,255,255,0.15);
	border-color: rgba(255,255,255,0.4);
	transform: translateY(-2px);
}


.form-row {
	margin-bottom: 15px;
}

.form-row label {
	display: block;
	font-size: 1.3rem;
	color: #aaa;
	margin-bottom: 5px;
	margin-right: 10px;
}

.form-row input {
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #333;
	background: #111;
	color: #fff;
}

.quick-btns {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.quick-btns button {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #333;
	background: #222;
	color: #ccc;
	font-size: 12px;
	cursor: pointer;
	transition: 0.2s;
}

.quick-btns button:hover {
	background: #ff2e7e;
	color: #fff;
	border-color: #ff2e7e;
}

.quick-btns .reset {
	background: #444;
	color: #fff;
}

.quick-btns .reset.all {
	background: #793d3d;
	color: #fff;
}

.section-title {
	position: relative;
	text-align: center;
	margin: 0px 0 20px;
}

.section-title span {
	font-size: 22px;
	font-weight: bold;
	color: #fff;
	padding: 0 20px;
	position: relative;
	z-index: 2;
}

/* ì–‘ìª½ ë¼ì¸ */
.section-title::before {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		#ff2e7e,
		transparent
	);
	z-index: 1;
}