/**
 * WORLD 테마 — demo8 스타일 풀폭 로비 (좌측 메뉴 없음)
 */
:root {
  --wd-bg: #000000;
  --wd-text: #f4f4f8;
  --wd-muted: #9aa0b5;
  --wd-warn: #ffc107;
  --wd-accent: #a831fb;
  --wd-casino-blue: #9fd4f0;
  --wd-header-bg: #3c4048;
  --wd-radius: 12px;
}

/* ── 풀폭 셸: 사이드바/레거시 제약 해제 ── */
body.page-world.page-shell {
  background: #000 !important;
  color: var(--wd-text);
}

body.page-world .wd-shell-page.mb-shell-page {
  display: block;
  max-width: none;
  width: 100%;
  min-height: 100vh;
  background: #000;
}

body.page-world .wd-shell-wrap {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-world .wd-shell-main.mb-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
  background: transparent;
}

body.page-world .mb-bottom-nav,
body.page-world .mb-shell-sidebar {
  display: none !important;
}

/* ── 상단 크롬 ── */
.wd-chrome {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 12px 0;
  background: linear-gradient(180deg, #000 70%, transparent);
}

.wd-chrome-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.25rem 0.55rem;
}

.wd-chip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 150px;
  width: auto;
  padding: 0.38rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: #3a3a42;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

.wd-chip-btn:hover {
  color: #fff;
  filter: brightness(1.12);
}

.wd-chip-btn strong {
  font-weight: 700;
}

/* 원형 컬러 아이콘 (레퍼런스와 동일) */
.wd-chip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}

.wd-chip-ico i {
  font-size: 0.78rem;
  line-height: 1;
}

.wd-chip-ico-dollar {
  font-size: 0.78rem;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}

.wd-chip-info {
  cursor: default;
}

/* 포인트 칩 — 전환 팝업 트리거 */
.wd-chip-btn.wd-chip-point[data-point-convert-open] {
  cursor: pointer;
}

.wd-chip-deposit {
  background: #3a3a42;
}

.wd-chip-withdraw {
  background: #3a3a42;
}

.wd-chip-memo,
.wd-chip-partner,
.wd-chip-logout {
  background: #3a3a42;
}

.wd-chip-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.wd-main-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 60px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: var(--wd-header-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  overflow-x: auto;
}

.wd-brand {
  flex-shrink: 0;
  font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 0.35rem;
  /* sunshine — 텍스트 글자 위에만 적용 */
  background-image: linear-gradient(
    110deg,
    #c9a227 0%,
    #ffe9a0 18%,
    #ffffff 32%,
    #ffd54f 48%,
    #fff8e1 58%,
    #ffb300 72%,
    #ffe082 88%,
    #c9a227 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wd-brand-sunshine 3.8s linear infinite;
}

@keyframes wd-brand-sunshine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* 로그인·회원가입 모달 — 메인 헤더와 동일 텍스트 로고 */
.mb-auth-world-brand {
  display: inline-block;
  font-size: 2.35rem;
  line-height: 1.15;
  padding: 0;
  cursor: default;
}

.mb-auth-world-brand.is-register {
  font-size: 1.85rem;
}

/* world 인증 팝업 — 로고 금색 톤으로 강조색 통일 */
body.page-world {
  --auth-gold: #c9a227;
  --auth-gold-light: #ffd54f;
  --auth-gold-dark: #a67c00;
  --auth-accent: #ffd54f;
  --auth-border: rgba(255, 213, 79, 0.18);
  --auth-glow: rgba(255, 213, 79, 0.35);
}

body.page-world .mb-auth-title {
  background: linear-gradient(90deg, #ffe9a0, #ffd54f 45%, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.page-world .mb-auth-btn-gold {
  border-color: rgba(255, 213, 79, 0.45);
  color: #ffd54f;
}

/* 입력 포커스 blur · 아이콘 · 관련 강조색을 골드로 */
body.page-world .mb-auth-field input:focus,
body.page-world .mb-auth-select:focus {
  border-color: rgba(255, 213, 79, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.18);
}

body.page-world .mb-auth-field-ico {
  color: rgba(255, 213, 79, 0.75);
}

body.page-world .mb-auth-check input:checked + .mb-auth-check-box {
  background: var(--auth-gold);
  box-shadow: 0 0 8px var(--auth-glow);
}

body.page-world .mb-auth-btn-primary {
  box-shadow: 0 4px 20px rgba(255, 213, 79, 0.35);
}

body.page-world .mb-auth-btn-primary:hover {
  box-shadow: 0 6px 28px rgba(255, 213, 79, 0.45);
}

body.page-world .mb-auth-btn-gold:hover {
  background: rgba(255, 213, 79, 0.08);
  color: #ffe082;
}

body.page-world .mb-auth-trust span::before {
  color: rgba(255, 213, 79, 0.7);
}

body.page-world .mb-auth-modal {
  box-shadow:
    0 0 0 1px rgba(255, 213, 79, 0.08),
    0 32px 100px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 213, 79, 0.06);
}

.wd-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 0;
}

.wd-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 7.6rem;
  min-width: 7.6rem;
  padding: 0.38rem 0.4rem;
  border: 0;
  border-radius: 8px;
  background: #4a4a52;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.wd-nav-btn:hover,
.wd-nav-btn.is-active {
  color: #fff;
  filter: brightness(1.1);
}

.wd-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* 라이브카지노 — 원형 아이콘 안 트럼프 카드 2장 */
.wd-nav-ico-cards {
  overflow: visible;
}

.wd-trump-cards {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.wd-trump-card {
  position: absolute;
  top: 1px;
  width: 9px;
  height: 12px;
  border-radius: 1.5px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25);
  font-size: 7px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
}

.wd-trump-card.is-spade {
  left: 0;
  color: #1a1a1a;
  transform: rotate(-18deg);
  z-index: 1;
}

.wd-trump-card.is-heart {
  left: 4px;
  color: #e11d48;
  transform: rotate(14deg);
  z-index: 2;
}

.wd-menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #3a3a42;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

/* 데스크톱: 짧은 입금/출금 라벨 숨김 */
.wd-nav-label-short {
  display: none;
}

/* ── 로비 본문 ── */
.wd-lobby {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 0 2rem;
}

.wd-lobby .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 히어로 */
.wd-hero-section {
  margin-top: 0.75rem;
}

.wd-hero-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  height: 350px;
  max-height: 42vw;
  /* 노란 바(left 28 + width 14) 뒤 15px 간격 → 57px */
  padding: 1.5rem 1.5rem 1.5rem 57px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff !important;
  overflow: hidden;
  border: 0;
}

.wd-hero-card:hover,
.wd-hero-card:focus,
.wd-hero-card:active {
  color: #fff !important;
  text-decoration: none;
}

.wd-hero-live {
  background:
    linear-gradient(to right, #000000, #ffffff25),
    url('/assets/themes/gtx/images/btn3_live_casino_background.webp') no-repeat center / cover;
}

.wd-hero-slot {
  background:
    linear-gradient(to right, #000000, #ffffff25),
    url('/assets/themes/gtx/images/btn3_slot_game_background.webp') no-repeat center / cover;
}

.wd-hero-bar {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 14px;
  height: 78px;
  border-radius: 0 10px 10px 0;
  background: var(--wd-warn);
}

.wd-hero-copy {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: translateY(0) scale(1);
  transform-origin: left bottom;
  transition: transform 0.28s ease;
}

.wd-hero-card:hover .wd-hero-copy,
.wd-hero-card:focus-visible .wd-hero-copy {
  transform: translateY(-10px) scale(1.06);
}

.wd-hero-title {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  color: #fff !important;
}

.wd-hero-sub {
  display: block;
  margin-top: 0.25rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  color: var(--wd-warn) !important;
  filter: brightness(1.35) saturate(0.7);
}

/* 섹션 */
.wd-section {
  margin-top: 0.7rem;
}

.wd-hero-section + .wd-section {
  margin-top: 0.85rem;
}

/* LIVE CASINO ↔ SLOT MACHINE 등 연속 섹션 간격 */
.wd-section + .wd-section {
  margin-top: 30px;
}

.wd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.wd-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.wd-section-title i {
  color: var(--wd-warn);
  font-size: 1.15rem;
  line-height: 1;
  transform: rotate(8deg);
}

.wd-section-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wd-swiper-btn {
  border: 0;
  background: transparent;
  color: var(--wd-warn);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.wd-swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.wd-section-more {
  margin-left: 0.35rem;
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
}

.wd-section-more:hover {
  color: var(--wd-warn);
}

.wd-game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(197, 167, 115, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.wd-game-card:hover {
  transform: scale(1.02);
  color: #fff;
}

.wd-game-card-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 280px;
  overflow: hidden;
  background: #1c1c24;
}

.wd-game-card-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  background: #1c1c24;
}

/* .wd-lobby img { height:auto } 보다 우선 — 미디어 박스 아래 공백 방지 */
.wd-lobby .wd-game-card-img {
  height: 100%;
}

/* 슬롯 카드: 이미지 전체 노출 (크롭 없음) + 텍스트명 없음 */
.wd-game-card--slot .wd-game-card-media {
  aspect-ratio: auto;
  max-height: none;
  background: #0d0d0d;
}

.wd-game-card--slot .wd-game-card-img,
.wd-lobby .wd-game-card--slot .wd-game-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.wd-game-card--slot .wd-game-card-body {
  padding: 0.65rem 0.75rem 0.85rem;
}

.wd-game-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 1rem;
  background: linear-gradient(145deg, #2a1848, #121218);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.wd-game-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.75rem 1rem;
  background: #0d0d0d;
  position: relative;
  z-index: 2;
}

.wd-game-card .wd-casino-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
}

.wd-game-card-title {
  margin: 0;
  color: #d4af37;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* 라이브 카지노 카드: 게임명·버튼만 파란 계열 (슬롯·히어로는 유지) */
.wd-game-card--live .wd-game-card-title {
  color: var(--wd-casino-blue);
}

/* 모바일: 라이브 벤더 이미지 가로 전체 노출 (세로는 비율대로 축소) */
@media (max-width: 767.98px) {
  .wd-game-card--live .wd-game-card-media {
    aspect-ratio: auto;
    max-height: none;
  }

  .wd-game-card--live .wd-game-card-img,
  .wd-lobby .wd-game-card--live .wd-game-card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

.wd-game-card-sub {
  margin: 0.25rem 0 0.75rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.92;
}

.wd-game-card-name {
  display: block;
  padding: 0.45rem 0.35rem 0.55rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-game-card.is-stopped,
.wd-mini-card.is-stopped {
  opacity: 0.45;
}

.wd-game-card.is-stopped .wd-casino-btn {
  pointer-events: none;
  cursor: not-allowed;
}

.wd-empty-card {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--wd-muted);
  background: #14141a;
  border-radius: 10px;
}

.wd-mini-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(168, 49, 251, 0.35), rgba(20, 20, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wd-mini-card:hover {
  color: #fff;
  filter: brightness(1.08);
}

.wd-mini-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.wd-mini-cta {
  margin-top: 0.35rem;
  color: var(--wd-warn);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 게시판 */
.wd-boards {
  margin-top: 2rem;
}

.wd-board-card {
  background: #1a1a22;
  border-radius: 10px;
  padding: 1rem 1.1rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
}

.wd-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.wd-board-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.wd-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-board-list li a {
  display: grid;
  grid-template-columns: 36px 1fr 96px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #ddd;
  text-decoration: none;
  font-size: 0.88rem;
}

.wd-board-list li a:hover {
  color: #fff;
}

.wd-board-no {
  text-align: center;
  color: var(--wd-muted);
}

.wd-board-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-board-date {
  text-align: right;
  color: var(--wd-muted);
  font-size: 0.8rem;
}

.wd-board-empty {
  padding: 1rem 0;
  color: var(--wd-muted);
  font-size: 0.88rem;
}

/* 파트너 로고 — 우측→좌측 무한 스크롤 */
.wd-partners {
  margin: 1.75rem 0 0;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background: transparent;
}

.wd-partners-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.wd-partners-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: wd-partners-marquee 45s linear infinite;
}

.wd-partners-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
  flex-shrink: 0;
}

.wd-partners-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 58px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #1f2128;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wd-partners-item img {
  display: block;
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

@keyframes wd-partners-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-partners-track {
    animation: none;
  }
}

/* 푸터 */
.wd-footer {
  margin-top: 0.5rem;
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
  color: var(--wd-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wd-footer-muted {
  opacity: 0.85;
}

.wd-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1rem 0 0.35rem;
}

.wd-footer-badge {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.9;
}

@media (max-width: 991.98px) {
  .wd-hero-card {
    height: 220px;
    max-height: none;
    min-height: 180px;
  }

  /* 모바일 헤더: 로고 + 입금 + 출금 + 햄버거만 */
  .wd-main-header {
    gap: 0.4rem;
  }

  .wd-nav {
    margin-left: auto;
    margin-right: 0.25rem;
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .wd-nav-btn.wd-nav-desktop {
    display: none !important;
  }

  .wd-nav-btn.wd-nav-money {
    width: auto;
    min-width: 0;
    padding: 0.38rem 0.65rem;
  }

  .wd-nav-btn.wd-nav-money .wd-nav-label-full {
    display: none;
  }

  .wd-nav-btn.wd-nav-money .wd-nav-label-short {
    display: inline !important;
  }

  .wd-nav-label {
    display: none;
  }

  .wd-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    flex-shrink: 0;
  }

  .wd-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .wd-chrome {
    padding: 8px 8px 0;
  }

  .wd-brand {
    font-size: 1.28rem;
  }

  .wd-hero-card {
    height: 160px;
    padding-left: 41px; /* bar 16+10 + gap 15 */
  }

  .wd-hero-bar {
    left: 16px;
    height: 56px;
    width: 10px;
    bottom: 18px;
  }

  .wd-board-list li a {
    grid-template-columns: 28px 1fr 72px;
  }
}

/* ========== 라이브 카지노 페이지 ========== */
.wd-casino-page .wd-hero-section {
  margin-bottom: 1.25rem;
}

/* 카지노 페이지 히어로 높이 축소 */
.wd-casino-page .wd-hero-card {
  min-height: 140px;
  height: 160px;
  max-height: 22vw;
  padding: 1rem 1.25rem 1rem 48px;
}

.wd-casino-page .wd-hero-bar {
  left: 22px;
  bottom: 20px;
  width: 12px;
  height: 56px;
}

.wd-casino-page .wd-hero-title {
  font-size: 1.65rem;
}

.wd-casino-page .wd-hero-sub {
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .wd-casino-page .wd-hero-card {
    min-height: 120px;
    height: 130px;
    max-height: none;
  }
}

@media (max-width: 575.98px) {
  .wd-casino-page .wd-hero-card {
    min-height: 100px;
    height: 110px;
    padding-left: 38px;
  }

  .wd-casino-page .wd-hero-bar {
    left: 14px;
    bottom: 16px;
    height: 44px;
    width: 9px;
  }

  .wd-casino-page .wd-hero-title {
    font-size: 1.35rem;
  }
}

.wd-casino-grid-section {
  padding-bottom: 2rem;
}

.wd-casino-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.wd-casino-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid rgba(197, 167, 115, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.wd-casino-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wd-casino-card-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wd-casino-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.wd-casino-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(180, 40, 40, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.wd-casino-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem 1.1rem;
}

.wd-casino-card-title {
  margin: 0;
  color: var(--wd-casino-blue);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.wd-casino-card-sub {
  margin: 0.28rem 0 0.85rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.92;
}

.wd-casino-card-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.wd-casino-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wd-casino-btn-gold {
  background: #d4af37;
  border: 1px solid #d4af37;
  color: #111 !important;
}

.wd-casino-btn-gold:hover {
  filter: brightness(1.08);
  color: #111 !important;
}

.wd-casino-btn-blue {
  background: #9fd4f0;
  border: 1px solid #9fd4f0;
  color: #0b1520 !important;
}

.wd-casino-btn-blue:hover {
  filter: brightness(1.06);
  color: #0b1520 !important;
}

.wd-casino-card.is-stopped {
  opacity: 0.72;
}

.wd-casino-card.is-stopped .wd-casino-btn {
  pointer-events: none;
  cursor: not-allowed;
}

/* 페이지 진입 애니메이션 */
.wd-page-enter .wd-anim-item {
  opacity: 0;
  transform: translateY(18px);
  animation: wdPageEnter 0.55s ease forwards;
  animation-delay: var(--wd-anim-delay, 0s);
}

@keyframes wdPageEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-page-enter .wd-anim-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 1399.98px) {
  .wd-casino-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .wd-casino-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .wd-casino-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wd-casino-card {
    min-height: 280px;
  }
}

@media (max-width: 767.98px) {
  /* 상단 칩 — 균등 간격으로 가로 꽉 채움 */
  .wd-chrome-actions {
    justify-content: stretch;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .wd-chrome-actions.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .wd-chrome-actions .wd-chip-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0.38rem 0.35rem;
    font-size: 0.74rem;
    gap: 0.28rem;
    overflow: hidden;
  }

  /* 모바일: 아이디 숨기고 잔액·포인트·파트너·나가기를 더 넓게 */
  .wd-chrome-actions .wd-chip-userid {
    display: none;
  }

  .wd-chrome-actions .wd-chip-btn strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wd-chrome-actions .wd-chip-ico {
    width: 1.15rem;
    height: 1.15rem;
  }

  .wd-chrome-actions .wd-chip-ico i,
  .wd-chrome-actions .wd-chip-ico-dollar {
    font-size: 0.7rem;
  }

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

  .wd-casino-card {
    min-height: 0;
  }

  .wd-casino-card-media {
    position: relative;
    inset: auto;
  }

  .wd-casino-card-img,
  .wd-lobby .wd-casino-card-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .wd-casino-card-title {
    font-size: 0.95rem;
  }

  .wd-casino-btn {
    font-size: 0.62rem;
    padding: 0.32rem 0.4rem;
  }
}

@media (max-width: 420px) {
  .wd-casino-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== WORLD 햄버거 메뉴 — 아이콘 아래에서 펼침 ========== */
body.page-world .mb-drawer-overlay {
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
}

body.page-world .mb-drawer {
  top: 120px;
  right: 8px;
  left: 8px;
  width: auto;
  height: auto;
  max-height: calc(100vh - 128px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #2a2d34;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 1101;
  overflow-x: hidden;
  overflow-y: auto;
  transform: scaleY(0.55) translateY(-8px);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.22s ease,
    visibility 0.22s ease;
}

body.page-world .mb-drawer.open {
  right: 8px;
  left: 8px;
  transform: scaleY(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.page-world .mb-drawer-head {
  display: none;
}

body.page-world .mb-drawer-body {
  padding: 0.65rem 0.55rem 0.85rem;
}

body.page-world .mb-drawer-logout {
  margin: 0.65rem 0.35rem 0.25rem;
  background: #d4af37;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

body.page-world .mb-drawer-logout:hover {
  color: #111;
  background: #e0c04a;
  filter: brightness(1.05);
}
