/* 로컬 폰트 사용 시 아래 @font-face 주석을 해제하세요
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
*/

.exact-theme {
  --bg-deep: #0b0d13;
  --bg-panel: #121621;
  --bg-card: #171c2b;
  --bg-elevated: #1e2436;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 196, 81, 0.35);

  --gold-light: #f5c451;
  --gold-dark: #d49b27;
  --gold-gradient: linear-gradient(135deg, #f5c451 0%, #d49b27 100%);

  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --max-width: 1360px;
}

.exact-theme * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.exact-theme {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(245, 196, 81, 0.07), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.05), transparent 36%);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.exact-theme button, .exact-theme input, .exact-theme select, .exact-theme textarea {
  font-family: inherit;
  color: inherit;
}

.exact-theme button {
  cursor: pointer;
  border: none;
  background: none;
}

.exact-theme .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Utility Bar */
.exact-theme .utility-bar {
  background: #07090d;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-sub);
}

.exact-theme .utility-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exact-theme .utility-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exact-theme .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.exact-theme .utility-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.exact-theme .utility-menu button {
  color: var(--text-sub);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.exact-theme .utility-menu button:hover {
  color: var(--gold-light);
}

.exact-theme .msg-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
}

/* Main Header */
.exact-theme .main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.exact-theme .header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.exact-theme .brand-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.exact-theme .brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #0b0d13;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.25);
}

.exact-theme .brand-title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exact-theme .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

/* Main GNB */
.exact-theme .main-gnb {
  display: flex;
  align-items: center;
  gap: 6px;
}

.exact-theme .gnb-btn {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.16s;
}

.exact-theme .gnb-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.exact-theme .gnb-btn.active {
  color: #0b0d13;
  background: var(--gold-gradient);
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.25);
}

/* Wallet & Action Zone */
.exact-theme .wallet-zone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exact-theme .wallet-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: 10px;
}

.exact-theme .vip-badge {
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.exact-theme .wallet-item {
  display: flex;
  flex-direction: column;
}

.exact-theme .wallet-label {
  font-size: 10px;
  color: var(--text-muted);
}

.exact-theme .wallet-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.exact-theme .wallet-val.point {
  color: var(--emerald);
}

.exact-theme .btn-deposit {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: #0b0d13;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.22);
}

.exact-theme .btn-withdraw {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 13px;
}

.exact-theme .mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Main Content */
.exact-theme .page-.exact-theme {
  padding: 24px 0 60px;
}

/* Footer */
.exact-theme .site-footer {
  background: #07090d;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.exact-theme .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.exact-theme .footer-links {
  display: flex;
  gap: 20px;
}

.exact-theme .footer-links button:hover {
  color: var(--gold-light);
}

/* Hero Banner (11월 16일 오전 3:22 버전 구조 동일) */
.exact-theme .hero-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-panel);
  margin-bottom: 24px;
  min-height: 290px;
  display: flex;
  align-items: center;
}

.exact-theme .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exact-theme .hero-content {
  position: relative;
  z-index: 2;
  padding: 44px 48px;
  max-width: 680px;
}

.exact-theme .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.exact-theme .hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 12px;
}

.exact-theme .hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exact-theme .hero-desc {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 24px;
}

.exact-theme .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.exact-theme .btn-hero-primary {
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #0b0d13;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(245, 196, 81, 0.28);
}

.exact-theme .btn-hero-secondary {
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
}

.exact-theme .btn-hero-secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Notice Strip */
.exact-theme .notice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
}

.exact-theme .notice-badge {
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Lobby Panel */
.exact-theme .lobby-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.exact-theme .lobby-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.exact-theme .lobby-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exact-theme .count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(245, 196, 81, 0.12);
  padding: 2px 10px;
  border-radius: 99px;
}

.exact-theme .search-input {
  width: 260px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.exact-theme .search-input:focus {
  outline: none;
  border-color: var(--gold-light);
}

/* Provider Tabs */
.exact-theme .provider-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.exact-theme .provider-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}

.exact-theme .provider-tab:hover,
.exact-theme .provider-tab.active {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(245, 196, 81, 0.08);
}

/* Game Grid & Cards (단일 게임실행 버튼 오버레이 + 게임사/게임명/SLOT·LIVE 배지만 표시) */
.exact-theme .game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.exact-theme .game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.exact-theme .game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.exact-theme .game-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0d13;
}

.exact-theme .game-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exact-theme .fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(11, 13, 19, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-sub);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exact-theme .fav-btn.active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

.exact-theme .game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 19, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s;
}

.exact-theme .game-card:hover .game-overlay {
  opacity: 1;
}

.exact-theme .btn-play-single {
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: #0b0d13;
  font-weight: 800;
  font-size: 13px;
}

.exact-theme .game-info {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exact-theme .game-provider-txt {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.exact-theme .game-name-txt {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exact-theme .cat-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.exact-theme .cat-badge.slot {
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold-light);
}

.exact-theme .cat-badge.live {
  background: var(--emerald-bg);
  color: var(--emerald);
}

/* Realtime Deposit / Withdraw Board */
.exact-theme .tx-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.exact-theme .tx-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
}

.exact-theme .tx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 800;
}

.exact-theme .tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.exact-theme .tx-row:last-child {
  border-bottom: none;
}

/* Modal */
.exact-theme .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.exact-theme .modal-box {
  width: 100%;
  max-width: 520px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px;
  max-height: 88vh;
  overflow-y: auto;
}

.exact-theme .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.exact-theme .modal-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
}

.exact-theme .form-stack {
  display: grid;
  gap: 14px;
}

.exact-theme .field-label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
  font-weight: 600;
}

.exact-theme .field-input, .exact-theme .field-select, .exact-theme .field-textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.exact-theme .field-textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
}

.exact-theme .preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* PC, 태블릿, 모바일 완전 반응형 */
@media (max-width: 1180px) {
  .exact-theme .main-gnb {
    display: none;
  }
  .exact-theme .mobile-toggle {
    display: inline-flex;
  }
  .exact-theme .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .exact-theme .wallet-box {
    display: none;
  }
  .exact-theme .tx-board-grid {
    grid-template-columns: 1fr;
  }
  .exact-theme .hero-content {
    padding: 32px 24px;
  }
  .exact-theme .hero-title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .exact-theme .utility-bar {
    display: none;
  }
  .exact-theme .container {
    padding: 0 14px;
  }
  .exact-theme .header-inner {
    height: 64px;
  }
  .exact-theme .btn-deposit, .exact-theme .btn-withdraw {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
  .exact-theme .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .exact-theme .search-input {
    width: 100%;
  }
  .exact-theme .lobby-panel {
    padding: 16px;
  }
}

.exact-theme .mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.72);
}

.exact-theme .mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-gold);
  padding: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

@media(max-width:700px){.exact-theme .header-inner{gap:8px}.exact-theme .wallet-zone{gap:8px;flex-shrink:0}.exact-theme .wallet-zone>button{white-space:nowrap;flex-shrink:0}.exact-theme .wallet-zone>.btn-deposit,.exact-theme .wallet-zone>.btn-withdraw{display:none}.exact-theme .brand-btn{min-width:0;gap:8px}.exact-theme .brand-title{font-size:17px;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exact-theme .brand-sub{font-size:8px;white-space:nowrap}.exact-theme .brand-emblem{width:34px;height:34px;flex-shrink:0}}

body.exact-theme-active{background:#0b0d13!important;margin:0}.exact-theme{min-height:100vh;color:var(--text-main);background:var(--bg-deep)}.exact-theme .exact-functional-page{padding:24px;background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:16px}.exact-theme .exact-functional-page :is(input,select,textarea){background:var(--bg-card);color:var(--text-main);border:1px solid var(--border-subtle);border-radius:8px;padding:10px;max-width:100%}.exact-theme .exact-functional-page button{background:var(--gold-light);color:#211600;border:1px solid var(--gold-dark);border-radius:8px;padding:9px 14px}.exact-theme .exact-functional-page :is(table,.panel,.card,section){background:var(--bg-panel);color:var(--text-main)}.exact-theme .exact-functional-page :is(th,td){border-color:var(--border-subtle)}.exact-theme .exact-functional-page :is(label,h1,h2,h3,p,a){color:inherit}.exact-theme .exact-functional-page :is(h1,h2,h3){margin-bottom:16px}.exact-theme .exact-functional-page a{color:var(--gold-light)}.exact-theme .exact-functional-page form{display:grid;gap:16px}.exact-theme .exact-functional-page label{display:grid;gap:6px}.exact-theme .exact-functional-page :is(input[type=checkbox],input[type=radio]){width:auto}.exact-theme .exact-functional-page [role=alert]{color:#ff898d}.exact-theme .exact-functional-page .actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:700px){.exact-theme .exact-functional-page{padding:14px;overflow-x:auto}}