/* ════════════════════════════════════════
   BLUE CASINO — style3.css
   Sidebar 300px / Dark #121212 / Cyan+Gold theme
   ════════════════════════════════════════ */

/* ── CSS 변수 ── */
:root {
  --primary:        #00ffff;
  --primary2:       #40efff;
  --primary-dim:    #00b8cc;
  --primary-border: rgba(0,255,255,0.25);
  --gold:           #e9b424;
  --gold-glow:      rgba(233,180,36,0.4);
  --black1:         #121212;
  --black2:         #1a1a1a;
  --black3:         #1d1d1d;
  --sidebar-bg:     #1d1d1d;
  --text1:          #ffffff;
  --text2:          #dcdcdc;
  --text3:          #666;
}

/* ── 기본 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black1);
  color: var(--text1);
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { cursor: pointer; text-decoration: none; color: var(--primary); }

/* ════ SIDEBAR ════ */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 300px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 1000; overflow-y: auto;
  padding: 0;
  scrollbar-width: none;
  display: flex; flex-direction: column;
}
.sidebar::-webkit-scrollbar { display: none; }

/* ── Logo with Wobble ── */
.sidebar-logo {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.sidebar-logo img {
  transform-origin: top center;
  animation: logoSwing 2.5s ease-in-out infinite;
  transition: filter 0.3s ease;
}
.sidebar-logo img:hover {
  filter: drop-shadow(0 0 12px rgba(0,255,255,0.7)) drop-shadow(0 0 24px rgba(0,255,255,0.4));
}
@keyframes logoSwing {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(6deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}
.logo-wobble {
  display: inline-block;
  animation: logoWobble 3s ease-in-out infinite;
}
@keyframes logoWobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(3deg); }
  30% { transform: rotate(-3deg); }
  45% { transform: rotate(2deg); }
  60% { transform: rotate(-1deg); }
  75% { transform: rotate(0.5deg); }
}
.sidebar-logo h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem; color: var(--primary);
  letter-spacing: 0.2em;
  text-shadow: 0 0 25px rgba(0,255,255,0.5), 0 0 50px rgba(0,255,255,0.2);
  margin-bottom: 4px;
}
.sidebar-logo small {
  font-size: 0.55rem; color: rgba(0,255,255,0.4);
  letter-spacing: 0.25em;
  display: block;
}

/* ── Sidebar Section Titles ── */
.sidebar-section-title {
  padding: 20px 20px 10px;
  font-size: 0.7rem; font-weight: 700;
  color: #00ffff; letter-spacing: 0.08em;
  text-transform: capitalize;
}

/* ── Sidebar Menu ── */
.sidebar-menu { list-style: none; padding: 0 14px; margin: 0; }
.sidebar-menu li { padding: 3px 0; }
.sidebar-menu a, .sidebar-menu .menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  color: #ccc; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s ease;
  border-radius: 30px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.sidebar-menu .menu-item i {
  width: 22px; text-align: center;
  font-size: 0.92rem;
  color: #00ffff;
  transition: all 0.3s;
}
.sidebar-menu .menu-item:hover i {
  transform: scale(1.15);
  color: #00ffff;
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.5));
}
.sidebar-menu .menu-item:hover {
  background: rgba(0,255,255,0.08);
  color: #fff;
  border-color: rgba(0,255,255,0.2);
}
.sidebar-menu .menu-item.active {
  background: linear-gradient(135deg, rgba(0,255,255,0.15), rgba(0,126,255,0.08));
  color: #00ffff;
  font-weight: 600;
  border-color: rgba(0,255,255,0.25);
}
.sidebar-menu .menu-item.active i {
  color: #00ffff;
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.5));
}

/* ── 19+ Badge ── */
.sidebar-badge-19 {
  margin-top: auto;
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-badge-19 span {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.sidebar-badge-19 small {
  display: block;
  font-size: 0.65rem;
  color: #666;
  line-height: 1.4;
}

/* ════ MAIN CONTENT ════ */
.main-content {
  margin-left: 300px;
  min-height: 100vh;
  background: var(--black1);
}

/* ════ TOP BAR ════ */
.top-bar {
  display: flex; align-items: center;
  padding: 10px 24px;
  background: #181818;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 10px;
  position: sticky; top: 0; z-index: 100;
}
.top-bar-marquee {
  display: flex; align-items: center;
  flex: 1;
  overflow: hidden;
  margin-right: 12px;
}

/* ════ BANNER SLIDER ════ */
.banner-arrow-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem; padding: 12px 10px; border-radius: 4px;
  cursor: pointer; z-index: 5;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.banner-arrow-btn:hover { background: rgba(0,255,255,0.15); border-color: rgba(0,255,255,0.4); color: #00ffff; }
.banner-arrow-left { left: 8px; }
.banner-arrow-right { right: 8px; }

/* ════ GAME CATEGORY TABS ════ */
.game-cat-tabs-wrap {
  display: flex; gap: 10px; padding: 16px 30px 12px;
}
.game-cat-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  color: #666;
  background: rgba(30,30,35,0.9);
  transition: all 0.3s;
}
.gct-text { display: flex; align-items: baseline; gap: 8px; }
.gct-kr { font-size: 1.3rem; font-weight: 800; }
.gct-en { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.05em; opacity: 0.6; }
.gct-icon { font-size: 1.6rem; opacity: 0.3; transition: all 0.3s; }
.game-cat-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #00c6ff, #7c3aed);
  border: none;
}
.game-cat-tab.active .gct-icon { opacity: 0.7; color: #fff; }
.game-cat-tab.active .gct-en { opacity: 0.85; }
.game-cat-tab:hover:not(.active) {
  background: rgba(40,40,50,0.95);
  color: #aaa;
  border-color: rgba(255,255,255,0.12);
}
.game-cat-tab:hover:not(.active) .gct-icon { opacity: 0.5; }

/* ════ BUTTONS ════ */
.btn-ghost {
  padding: 7px 16px;
  border: 1px solid var(--primary-border);
  border-radius: 6px;
  color: var(--primary);
  background: transparent;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(0,255,255,0.1); }

.btn-filled {
  padding: 7px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: #000;
  background: linear-gradient(135deg, var(--primary), #007eff);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.btn-filled:hover { filter: brightness(1.15); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ════ COMMON ════ */
.main-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ════ HEADER (kept for compatibility) ════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  background: linear-gradient(180deg, rgba(18,18,18,0.98) 0%, rgba(26,26,26,0.95) 100%);
  border-bottom: 1px solid var(--primary-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  transition: transform 0.3s ease;
}
header.hidden { transform: translateY(-100%); }

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  cursor: pointer;
  line-height: 1.2;
  display: flex; flex-direction: column;
}
.logo small {
  font-size: 0.5rem; letter-spacing: 0.3em;
  color: var(--text3); font-weight: 400;
}

.hdr-right { display: flex; align-items: center; gap: 8px; }

/* ════ HERO (kept for compatibility) ════ */
.hero {
  position: relative; height: 320px; margin-top: 64px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,255,255,0.1) 0%, transparent 65%),
              linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-body { position: relative; z-index: 2; text-align: center; }
.hero-h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  letter-spacing: 0.3em; color: var(--primary);
  text-shadow: 0 0 40px rgba(0,255,255,0.5);
}
.hero-sub { font-size: 0.75rem; letter-spacing: 0.4em; color: var(--text2); margin-top: 8px; }
.hero-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 16px auto 0;
}

/* ════ NAVBAR ════ */
.navbar {
  position: sticky; top: 64px; z-index: 900;
  background: rgba(26,26,26,0.97);
  border-top: 1px solid var(--primary-border);
  border-bottom: 1px solid var(--primary-border);
  backdrop-filter: blur(8px);
  transition: top 0.3s ease;
}
.navbar.top-fixed { top: 0; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.nav-links { display: flex; align-items: center; justify-content: center; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 16px; font-size: 0.78rem;
  color: var(--text2); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.nav-link i { font-size: 0.82rem; }
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ════ GAME TABS (compat) ════ */
.game-tabs { background: transparent; padding: 16px 0 6px; position: relative; z-index: 2; }
.game-tabs-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.g-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 34px;
  border: 1px solid transparent; border-radius: 6px;
  color: var(--text2); font-size: 0.82rem;
  transition: all 0.25s; position: relative;
}
.g-tab .tab-icon { font-size: 1.8rem; }
.g-tab .text-panel { display: flex; flex-direction: column; align-items: center; }
.g-tab .text-kr { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.g-tab .text-en { font-size: 0.72rem; letter-spacing: 0.15em; opacity: 0.6; }
.g-tab:hover { color: var(--primary); }
.g-tab.active {
  color: var(--primary); border-color: var(--primary-border);
  background: rgba(0,255,255,0.06);
}

.tab-deco {
  font-size: 2.4rem; color: var(--primary-dim);
  padding: 0 20px; transition: transform 0.3s ease;
}
.tab-deco.tilt-left  { transform: rotate(-15deg); }
.tab-deco.tilt-right { transform: rotate(15deg); }

/* ════ SECTION TITLE ════ */
.sec-title {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0 14px; position: relative; z-index: 2;
}
.sec-title-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-border), transparent);
}
.sec-title-line-r {
  background: linear-gradient(90deg, transparent, var(--primary-border), transparent);
}
.sec-title-center { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sec-title-text {
  font-size: 1.05rem; letter-spacing: 0.3em;
  font-family: 'Cinzel', serif; font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 18px rgba(0,255,255,0.7), 0 0 40px rgba(0,255,255,0.3);
}
.sec-title-icon {
  font-size: 0.75rem; color: var(--primary-dim);
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.8));
}

/* ════ LIVE GRID ════ */
.live-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-bottom: 10px; justify-content: center;
}
.live-grid .live-card { width: 100%; min-width: 0; }

/* ════ LIVE CARD ════ */
.live-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,255,255,0.25);
  background: var(--black2);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  /* aspect-ratio removed */
  display: flex; flex-direction: column;
  will-change: transform;
  contain: layout style paint;
  box-shadow: 0 0 8px rgba(0,255,255,0.1);
}
.live-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0,255,255,0.6);
  box-shadow: 0 0 15px rgba(0,255,255,0.3), 0 0 30px rgba(0,255,255,0.15), 0 8px 20px rgba(0,0,0,0.4);
}
.live-card:hover .enter-overlay { opacity: 1; }
.live-card:hover .shine { animation: shine-sweep 0.55s ease forwards; }

.shine {
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  z-index: 3;
  background: linear-gradient(to right, transparent 0%, rgba(255,240,180,0.15) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
@keyframes shine-sweep {
  0%   { left: -75%; }
  100% { left: 125%; }
}

.enter-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  opacity: 0; transition: opacity 0.25s;
}
.enter-label {
  display: flex; align-items: center; gap: 6px;
  color: #fff; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em;
  border: 2px solid var(--gold);
  padding: 8px 18px; border-radius: 6px;
  background: rgba(0,0,0,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.live-thumb {
  position: relative; width: 100%; overflow: hidden;
}
.live-thumb img { width: 100%; height: 100%; object-fit: contain; }

.card-label-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.card-label-text {
  font-size: 0.7rem; color: rgba(255,255,255,0.9); font-weight: 600;
}

.live-footer {
  padding: 10px 8px; background: var(--black3); text-align: center;
}
.live-name {
  font-size: 1rem; color: #fff; font-weight: 700;
}

/* ── 카드 배경 애니메이션 ── */
.card-bg-anim {
  background: linear-gradient(45deg, #0a0a0a, #0d2030, #0a1525, #061520, #0a0a0a);
  background-size: 400% 400%;
  animation: cardBgShimmer 8s ease infinite;
}
@keyframes cardBgShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 카드 등장 애니메이션 ── */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.live-card {
  opacity: 0;
  animation: cardFadeIn 0.4s ease forwards;
}

/* ── 카드 이펙트 ── */
@keyframes ripple { to { transform: scale(2.5); opacity: 0; } }
.ripple-wave {
  position: absolute; z-index: 10;
  border-radius: 50%;
  background: rgba(0,255,255,0.25);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}
@keyframes flash { 0%,100%{ opacity:0; } 30%{ opacity:1; } }
.card-flash {
  position: absolute; inset: 0; z-index: 9;
  background: rgba(150,240,255,0.12);
  pointer-events: none;
  animation: flash 0.6s ease-out forwards;
}

/* ════ BANNER STRIP ════ */
.banner-strip {
  background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
  border-top: 1px solid var(--primary-border);
  border-bottom: 1px solid var(--primary-border);
  padding: 12px 0;
}
.banner-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.banner-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  cursor: pointer; transition: background 0.2s;
}
.banner-card:hover { background: rgba(0,255,255,0.06); }
.banner-icon { font-size: 1.6rem; flex-shrink: 0; }
.banner-label { font-size: 0.62rem; color: var(--primary-dim); margin-bottom: 2px; }
.banner-title { font-size: 0.82rem; font-weight: 700; color: var(--text1); }
.banner-sub { font-size: 0.65rem; color: var(--text3); margin-top: 2px; }
.banner-arrow { color: var(--primary-dim); font-size: 0.8rem; margin-left: auto; }

/* ════ INFO SECTION ════ */
.info-section {
  padding: 16px 0;
  background: var(--black1);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.info-box {
  border: 1px solid rgba(0,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0,255,255,0.04) 0%, rgba(10,10,18,0.95) 40%, rgba(0,30,60,0.3) 100%);
  height: 270px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 15px rgba(0,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.info-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 25px rgba(0,255,255,0.12);
  border-color: rgba(0,255,255,0.25);
}
.info-header {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(0,100,255,0.06));
  border-bottom: 1px solid rgba(0,255,255,0.1);
}
.info-header-icon { color: #00ffff; font-size: 0.85rem; filter: drop-shadow(0 0 4px rgba(0,255,255,0.4)); }
.info-header-title { font-size: 0.8rem; font-weight: 700; color: #00ffff; text-shadow: 0 0 8px rgba(0,255,255,0.3); }
.info-body {
  padding: 0; box-sizing: border-box;
  overflow-y: auto; height: calc(100% - 42px);
  scrollbar-width: none; -ms-overflow-style: none;
}
.info-body::-webkit-scrollbar { display: none; }
.notice-item:hover { background:rgba(0,255,255,0.06); }
.t-row {
  display:flex; align-items:center; gap:8px;
  padding:6px 10px; border-bottom:1px solid rgba(255,255,255,0.04); font-size:0.76rem;
}
.t-user { display:flex; align-items:center; gap:5px; flex:1; color:var(--text2); }
.t-avatar { font-size:1.4rem; }
.t-amount { color:#00ffff; font-weight:700; text-shadow: 0 0 6px rgba(0,255,255,0.3); }
.t-amount.green { color:#70c880; }
.t-time { color:var(--text3); font-size:0.68rem; }

/* ════ PARTNERS ════ */
.partners {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--black1);
}
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.p-logo-img {
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s;
}
.p-logo-img:hover { border-color: var(--primary-border); background: rgba(0,255,255,0.05); }
.p-logo-img img { max-height: 28px; width: auto; filter: brightness(0.6) grayscale(50%); transition: filter 0.3s; }
.p-logo-img:hover img { filter: brightness(1) grayscale(0%); }

/* ════ MODAL ════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

/* ════ 입금/출금 통합 모달 ════ */
.tw-modal-container {
  background: var(--black3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 100%; max-width: 660px;
  position: relative; overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9);
  max-height: 95vh; overflow-y: auto;
}
.tw-modal-x {
  position: absolute; top: 12px; right: 14px; z-index: 10;
  background: none; border: none; color: var(--text3); font-size: 1.2rem; cursor: pointer;
}
.tw-modal-x:hover { color: var(--primary); }

/* 배너 */
.tw-banner {
  position: relative; height: 100px;
  background: linear-gradient(135deg, #121212 0%, #1d2a2a 50%, #121212 100%);
  overflow: hidden;
}
.tw-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 40%, rgba(0,255,255,0.04) 0%, transparent 50%);
}
.tw-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(29,29,29,0.95) 100%);
}
.tw-banner-title {
  position: absolute; bottom: 14px; left: 24px;
  font-size: 1.4rem; font-weight: 700; color: var(--primary2); margin: 0; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-family: 'Cinzel', serif;
}

/* 탭 */
.tw-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tw-tab {
  flex: 1; padding: 13px 0; border: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--text3);
  background: var(--black2); transition: all 0.2s;
}
.tw-tab.active {
  color: var(--primary2);
  background: rgba(0,255,255,0.06);
  border-bottom: 2px solid var(--primary);
}
.tw-tab:hover:not(.active) { background: rgba(0,255,255,0.03); color: var(--text2); }

/* 컨텐츠 2열 */
.tw-content { display: flex; min-height: 400px; }
.tw-left { flex: 1; padding: 20px 24px; }
.tw-right {
  width: 420px; padding: 0; background: var(--black2);
  overflow-y: auto; max-height: 70vh;
}

/* 섹션 레이블 */
.tw-section-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text2);
  margin-bottom: 10px; margin-top: 18px;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tw-section-label:first-child { margin-top: 0; }

/* 머니 정보 */
.tw-money-info {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 10px 0;
}
.tw-money-item {
  font-size: 0.85rem; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.tw-money-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); display: inline-block;
}
.tw-money-item strong { color: var(--text1); font-size: 0.95rem; margin-left: 4px; }

/* 금액 버튼 */
.tw-amount-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tw-amount-btns button {
  flex: 1; min-width: 80px; padding: 10px 6px;
  background: rgba(0,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: var(--text2);
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.tw-amount-btns button:hover {
  background: rgba(0,255,255,0.12); border-color: var(--primary); color: var(--primary2);
}

/* 금액 입력 행 */
.tw-amount-row {
  display: flex; align-items: center; gap: 0;
  background: var(--black1); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  overflow: hidden; margin-bottom: 6px;
}
.tw-reset-btn {
  background: rgba(0,255,255,0.04); border: none; border-right: 1px solid rgba(255,255,255,0.08);
  color: var(--text2); padding: 12px 16px; cursor: pointer; font-size: 0.9rem; transition: color 0.15s;
}
.tw-reset-btn:hover { color: var(--primary); }
.tw-amount-input {
  flex: 1; background: transparent; border: none;
  color: var(--text1); font-size: 1.1rem; font-weight: 700;
  text-align: right; padding: 12px 16px; outline: none;
}

/* 보너스 선택 */
.tw-bonus-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tw-bonus-btn {
  width: 100%; text-align: left; padding: 11px 14px; border-radius: 6px;
  background: rgba(0,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text2); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.tw-bonus-btn.active {
  background: rgba(0,255,255,0.1); border-color: var(--primary);
  color: var(--primary2); box-shadow: 0 0 8px rgba(0,255,255,0.1);
}
.tw-bonus-btn.none {
  background: rgba(255,255,255,0.01); border-color: rgba(255,255,255,0.06); color: var(--text3);
}
.tw-bonus-btn.none.active {
  background: rgba(0,255,255,0.05); border-color: var(--primary-dim); color: var(--text2);
}
.tw-bonus-btn:hover { border-color: var(--primary-dim); }

/* 제출 버튼 행 */
.tw-submit-row { display: flex; gap: 8px; margin-top: 12px; }
.tw-btn-sub {
  flex: 1; padding: 13px 0;
  background: rgba(0,255,255,0.08); border: 1px solid rgba(0,255,255,0.25);
  border-radius: 6px; color: var(--primary);
  font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.tw-btn-sub:hover { background: rgba(0,255,255,0.18); color: var(--primary2); }
.tw-btn-main {
  flex: 1; padding: 13px 0;
  background: linear-gradient(135deg, #007eff, var(--primary));
  border: none; border-radius: 6px; color: #000;
  font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.tw-btn-main:hover { background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.tw-btn-main.full { flex: 1; }

/* 텍스트 인풋 */
.tw-text-input {
  width: 100%; box-sizing: border-box;
  background: var(--black1); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 11px 14px;
  color: var(--text1); font-size: 0.85rem; outline: none; margin-bottom: 6px;
}
.tw-text-input:focus { border-color: var(--primary); }

/* 출금후 금액 */
.tw-after-amount { text-align: right; font-size: 0.82rem; color: var(--text3); margin-bottom: 10px; }
.tw-after-amount strong { color: var(--text1); }

/* 오른쪽 규정 */
.tw-rule-header {
  text-align: center; padding: 14px 20px;
  font-size: 0.95rem; font-weight: 700; color: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(0,255,255,0.03);
}
.tw-rule-section { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tw-rule-title { font-size: 0.88rem; font-weight: 700; color: var(--text1); margin-bottom: 8px; }
.tw-rule-title i { color: var(--primary); font-size: 0.65rem; margin-right: 6px; }
.tw-rule-section p { font-size: 0.78rem; color: var(--text2); margin: 4px 0; line-height: 1.5; }
.tw-rule-warn { color: #f87171 !important; font-weight: 600; }

/* 롤링 현황 */
.tw-rolling-box { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tw-rolling-title { font-size: 0.85rem; font-weight: 700; color: var(--text2); margin-bottom: 10px; }
.tw-rolling-info { display: flex; gap: 20px; margin-bottom: 12px; font-size: 0.82rem; }
.tw-rolling-info span { color: var(--text3); }
.tw-rolling-info strong { color: var(--text1); margin-left: 6px; }
.tw-rolling-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tw-rolling-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem;
}
.tw-rolling-text { font-size: 0.8rem; }
.tw-rolling-text .status-label { color: #f87171; font-weight: 700; font-size: 0.9rem; }
.tw-rolling-text .status-desc { color: var(--text3); }
.tw-rolling-bar {
  background: rgba(0,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; height: 28px;
  display: flex; align-items: center; padding: 0 12px;
  font-size: 0.75rem; color: var(--text3); margin-bottom: 12px;
}
.tw-rolling-cards { display: flex; gap: 8px; margin-bottom: 8px; }
.tw-rolling-card {
  flex: 1; background: rgba(0,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 12px 6px; text-align: center;
}
.tw-rolling-card i { font-size: 1.2rem; color: var(--primary-dim); margin-bottom: 4px; display: block; }
.tw-rolling-card .rc-label { font-size: 0.7rem; color: var(--text3); margin-bottom: 4px; }
.tw-rolling-card .rc-val { font-size: 0.78rem; color: var(--primary); font-weight: 700; }
.tw-rolling-note { font-size: 0.72rem; color: #f87171; padding: 0 20px 10px; }

/* 출금내역 테이블 */
.tw-history-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text2);
  margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tw-history-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.tw-history-table th {
  padding: 8px 6px; font-size: 0.75rem; color: var(--text3);
  border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 600; text-align: center;
}
.tw-history-table td {
  padding: 8px 6px; font-size: 0.78rem; color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,0.03); text-align: center;
}
.tw-history-table .empty-row td { color: var(--text3); padding: 20px; font-size: 0.8rem; }

/* 안내 문구 */
.tw-notice { font-size: 0.78rem; color: var(--text3); padding: 10px 0; line-height: 1.5; }
.tw-notice a, .tw-notice .highlight { color: var(--primary); text-decoration: underline; cursor: pointer; }

/* 반응형 (transfer modal) */
@media (max-width: 860px) {
  .tw-content { flex-direction: column; }
  .tw-right { width: 100%; max-height: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .tw-left { border-right: none; }
}

/* ════ MODAL OVERLAY ════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
  background: linear-gradient(160deg, #1d1d1d 0%, #151515 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px 26px;
  width: 100%; max-width: 360px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  margin: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  color: var(--text3); font-size: 1rem; transition: color 0.2s;
}
.modal-close:hover { color: var(--primary); }
.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary); margin-bottom: 4px;
  text-align: center;
}
.modal-sub { font-size: 0.74rem; color: var(--text3); margin-bottom: 18px; }

.m-input {
  display: block; width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text1); font-size: 0.84rem;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.m-input:focus { outline: none; border-color: var(--primary); }
.m-input::placeholder { color: var(--text3); }
select.m-input { color: var(--text1); }
select.m-input option { background: #1a1a1a; color: var(--text1); }
select.m-input:invalid, select.m-input option[disabled] { color: var(--text3); }

/* Custom bank dropdown */
.bank-dropdown { position: relative; }
.bank-selected {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 11px 14px;
  color: var(--text3); font-size: 0.84rem;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.bank-selected:hover { border-color: var(--primary-dim); background: rgba(255,255,255,0.06); }
.bank-selected.has-value { color: var(--text1); }
.bank-selected.open { border-color: var(--primary); border-radius: 8px 8px 0 0; }
.bank-arrow { font-size: 0.7rem; color: var(--text3); transition: transform 0.25s; }
.bank-arrow.open { transform: rotate(180deg); }
.bank-options {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #1d1d1d;
  border: 1px solid rgba(255,255,255,0.1); border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  box-shadow: 0 12px 36px rgba(0,0,0,0.7); overflow: hidden;
}
.bank-options.open { display: block; }
.bank-search-wrap {
  position: relative; padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,255,255,0.02);
}
.bank-search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; color: var(--text3);
}
.bank-search {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 7px 10px 7px 28px;
  color: var(--text1); font-size: 0.78rem; font-family: inherit;
}
.bank-search:focus { outline: none; border-color: var(--primary-dim); }
.bank-search::placeholder { color: var(--text3); }
.bank-list { max-height: 200px; overflow-y: auto; }
.bank-list::-webkit-scrollbar { width: 4px; }
.bank-list::-webkit-scrollbar-track { background: transparent; }
.bank-list::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.2); border-radius: 4px; }
.bank-option {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 0.8rem;
  color: var(--text2); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.bank-option:hover { background: rgba(0,255,255,0.08); color: var(--text1); }
.bank-option.selected { background: rgba(0,255,255,0.12); color: var(--primary); font-weight: 600; }
.bank-opt-icon { font-size: 0.7rem; color: var(--primary-dim); opacity: 0.5; }
.bank-option:hover .bank-opt-icon,
.bank-option.selected .bank-opt-icon { opacity: 1; color: var(--primary); }

/* Register form two-column */
.reg-section-title {
  font-size: 0.82rem; font-weight: 700; color: var(--text2);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.reg-section-title i { margin-right: 6px; color: var(--primary-dim); }
.reg-field { margin-bottom: 12px; }
.reg-label {
  display: block; font-size: 0.76rem; font-weight: 600;
  color: var(--text2); margin-bottom: 5px;
}
.reg-req { color: #f87171; }
.reg-input-wrap { position: relative; }
.reg-input-wrap .m-input { padding-right: 34px; }
.reg-check {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 0.95rem; display: none;
}
.reg-check.valid { display: inline; color: #4ade80; }
.reg-check.invalid { display: inline; color: #f87171; }
.reg-msg { font-size: 0.72rem; min-height: 16px; margin-top: 3px; padding-left: 2px; }
.reg-msg.valid { color: #4ade80; }
.reg-msg.invalid { color: #f87171; }

@media (max-width: 600px) {
  #modal-register .modal-box > div[style*="display:flex;gap:28px"] {
    flex-direction: column !important; gap: 8px !important;
  }
}

.m-btn {
  display: block; width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), #007eff);
  border-radius: 8px; color: #000;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  font-family: inherit;
}
.m-btn:hover { filter: brightness(1.1); box-shadow: 0 0 20px rgba(0,255,255,0.3); }
.m-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.m-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 16px 0; }
.m-switch { text-align: center; font-size: 0.74rem; color: var(--text3); }
.m-switch a { color: var(--primary-dim); font-weight: 600; }
.m-switch a:hover { color: var(--primary); }

/* ── 샤인 효과 ── */
.shine-wrap { position: relative; overflow: hidden; }

/* ════ 반응형 ════ */
@media (max-width: 1100px) {
  .live-grid .live-card { width: calc((100% - 30px) / 4); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid-blue { grid-template-columns: repeat(2, 1fr); }
}
/* ════════════════════════════════════════
   MOBILE APP LAYOUT
   ════════════════════════════════════════ */

/* ── Mobile Header (hidden on desktop) ── */
.mobile-header {
  display: none;
}

/* ── Mobile Bottom Nav (hidden on desktop) ── */
.mobile-bottom-nav {
  display: none;
}

/* ── Mobile Auth Row (데스크톱에선 숨김) ── */
.m-auth-row {
  display: none;
}

@media (max-width: 780px) {

  /* ── Mobile Header ── */
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
    background: #1d1d1d;
    border-bottom: 1px solid rgba(0,255,255,0.1);
    z-index: 10001;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }
  /* 가운데 정렬된 로고 (이미지) */
  .mobile-header .m-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
  }
  .mobile-header .m-logo img {
    width: 120px !important;
    height: 79px !important;
    max-width: 120px !important;
    max-height: 79px !important;
    object-fit: contain !important;
    display: block !important;
  }
  .mobile-header .m-ham {
    font-size: 1.85rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  /* 우측 여백 (좌측 햄버거와 같은 너비로 대칭) */
  .mobile-header .m-right-spacer {
    width: 52px;
    flex-shrink: 0;
  }
  /* 기존 m-login-btn 숨김 (auth row로 이동됨) */
  .mobile-header .m-login-btn {
    display: none !important;
  }

  /* ── Mobile Auth Row (헤더 바로 아래, 2개 버튼) ── */
  .m-auth-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 6px 10px;
    background: #1d1d1d;
    border-bottom: 1px solid rgba(0,255,255,0.1);
  }
  .m-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 5px;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
  }
  .m-auth-btn:active {
    transform: scale(0.97);
  }
  .m-auth-btn.primary {
    background: linear-gradient(135deg, #00ffff, #007eff);
    color: #000;
    border: none;
    box-shadow: 0 0 12px rgba(0,255,255,0.3);
  }
  /* ── 로그인 상태: 닉네임 | 잔액 | 포인트 | 마이 (가로 4분할) ── */
  .m-auth-row.logged-in {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
  }
  .m-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    padding: 0 6px;
    border-radius: 5px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .m-stat i {
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .m-stat-nick {
    flex: 1.1;
    color: #00ffff;
    font-weight: 700;
  }
  .m-stat-bal {
    flex: 1.3;
    color: #fff;
  }
  .m-stat-bal i { color: #ffd166; }
  .m-stat-pt {
    flex: 1;
    color: #fff;
  }
  .m-stat-pt i { color: #00ffff; }
  .m-stat-my {
    flex: 0 0 36px;
    background: linear-gradient(135deg, #00ffff, #007eff);
    border: none;
    color: #000;
    cursor: pointer;
    font-family: inherit;
  }
  .m-stat-my i { font-size: 0.85rem; color: #000; }
  .m-auth-btn i {
    font-size: 0.85rem;
  }

  /* ── Mobile Bottom Navigation ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #1a1a1a;
    border-top: 1px solid rgba(0,255,255,0.15);
    z-index: 10001;
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 0.65rem;
    text-decoration: none;
    gap: 2px;
    transition: color 0.2s;
  }
  .mobile-bottom-nav a i {
    font-size: 1.2rem;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: #00ffff;
  }

  /* ── Body padding for fixed header/footer ── */
  body {
    padding-bottom: 70px !important;
  }

  /* ── Sidebar: off-screen, toggled by hamburger ── */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10002;
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
  }
  .sidebar.open ~ .sidebar-overlay {
    display: block;
  }

  /* ── Hide desktop sidebar logo (logo is in mobile header) ── */
  .sidebar-logo {
    display: none !important;
  }

  /* ── Main content: full width, offset for fixed header (80) + auth row (~42) ── */
  .main-content {
    margin-left: 0 !important;
    margin-top: 122px !important;
  }

  /* top-bar 통째 숨김 — 모바일은 mobile-header + m-auth-row가 대신함 */
  /* 로그인 후 user 정보는 별도 처리 (사이드바 또는 m-auth-row 자리 교체) */
  .top-bar,
  body .top-bar,
  .main-content .top-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* ── Top bar simplify ── */
  .top-bar {
    padding: 6px 12px !important;
    font-size: 0.75rem;
  }
  .top-bar .btn-ghost,
  .top-bar .btn-filled {
    font-size: 0.7rem !important;
    padding: 5px 10px !important;
  }

  /* ── Hide desktop brand/info sections ── */
  .main-wrap > div:has(> .info-grid),
  .info-section,
  .partner-logo-grid,
  .partners,
  .main-wrap > div[style*="HOTEL CASINO"] {
    display: none !important;
  }

  /* ── Banner: full width, compact ── */
  .hero {
    height: 200px !important;
    margin-top: 0 !important;
  }
  .hero-h1 {
    font-size: 1.5rem !important;
    letter-spacing: 0.15em !important;
  }
  .hero-sub {
    font-size: 0.6rem !important;
  }
  .banner-strip {
    padding: 8px 0 !important;
  }
  .banner-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* ── Game Category Tabs: sticky, full width ── */
  .game-cat-tabs-wrap {
    padding: 8px !important;
    position: sticky;
    top: 56px;
    z-index: 100;
    background: #121212;
    gap: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .game-cat-tab {
    font-size: 0.85rem !important;
    padding: 10px 4px !important;
    white-space: nowrap;
    min-width: 0;
    justify-content: center !important;
    overflow: hidden;
  }
  .game-cat-tab .gct-en,
  .game-cat-tab .gct-icon {
    display: none !important;
  }
  .game-cat-tab .gct-text {
    width: 100%;
    text-align: center;
    display: block !important;
  }
  .game-cat-tab .gct-kr {
    font-size: 0.85rem;
    font-weight: 700;
  }

  /* ── Game Grid: 3 columns, compact ── */
  .game-grid-blue {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  /* ── Live Grid: 3 columns ── */
  .live-grid .live-card {
    width: 100%;
    min-width: 0;
  }
  /* HTML 인라인 grid-template-columns:repeat(6,1fr) 덮어쓰기 — 모바일 2열 */
  .live-grid,
  #live-grid-row1,
  #slot-grid-row1,
  #hotel-grid-row1,
  #sports-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  #live-section,
  #slot-section,
  #hotel-section,
  #sports-section {
    padding: 12px 10px 0 !important;
  }
  /* 카드 자체 — 가로/세로 비율 유지하면서 적절한 크기 */
  .live-grid .live-card {
    width: 100% !important;
    aspect-ratio: 3 / 4;
  }

  /* ── Info Grid fallback ── */
  .info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .info-grid-blue {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Navbar: scroll horizontal ── */
  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link {
    font-size: 0.72rem;
    padding: 12px 10px;
    white-space: nowrap;
  }

  /* ── Game tabs compact ── */
  .game-tabs-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }
  .g-tab {
    padding: 10px 16px;
    flex-shrink: 0;
  }
  .tab-deco {
    display: none !important;
  }

  /* ── Section titles compact ── */
  .sec-title {
    padding: 10px 8px !important;
  }
  .sec-title-text {
    font-size: 0.85rem !important;
    letter-spacing: 0.15em !important;
  }

  /* ── Cards: reduce hover effects on touch ── */
  .live-card:hover {
    transform: none;
  }
  .live-card {
    border-radius: 8px;
  }

  /* ── Main wrap: no side padding ── */
  .main-wrap {
    padding: 0 8px !important;
  }

  /* ── Sub-page mobile overrides ── */
  #sub-page-area > div {
    flex-direction: column !important;
  }
  #sub-page-img {
    width: 100% !important;
    height: 200px !important;
  }
  #sub-page-games {
    padding: 8px !important;
  }
  #sub-live-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  /* ── Modal responsive ── */
  .modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 20px 16px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .modal-backdrop {
    padding: 10px !important;
  }

  /* ── Transfer modal mobile ── */
  .tw-modal-container {
    max-width: 100% !important;
    border-radius: 8px !important;
  }
  .tw-banner {
    height: 70px !important;
  }
  .tw-banner-title {
    font-size: 1.1rem !important;
  }
}

/* ════ SMALL PHONE (≤480px) ════ */
@media (max-width: 480px) {

  /* ── Game Grid: 2 columns ── */
  .game-grid-blue {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Live Grid: 2 columns ── */
  .live-grid .live-card {
    width: calc((100% - 10px) / 2);
  }

  /* ── Info Grid: 1 column ── */
  .info-grid {
    grid-template-columns: 1fr !important;
  }
  .info-grid-blue {
    grid-template-columns: 1fr !important;
  }

  /* ── Game tabs even more compact ── */
  .g-tab {
    padding: 8px 14px;
  }
  .g-tab .text-en {
    display: none;
  }

  /* ── Sub-page small mobile ── */
  #sub-page-img {
    height: 150px !important;
  }
  #sub-live-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Modal fullscreen ── */
  .modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* ── Category tabs smaller ── */
  .game-cat-tab {
    font-size: 0.75rem !important;
    padding: 8px 0 !important;
  }

  /* ── Hero even smaller ── */
  .hero {
    height: 160px !important;
  }
  .hero-h1 {
    font-size: 1.2rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Quill 에디터 출력 클래스 (공지사항 정렬/사이즈/색상)
   어드민 위지윅 에디터로 작성한 공지가 유저 페이지에서도 정렬됨
   ═══════════════════════════════════════════════════════════════ */
.nc-popup-card .ql-align-center,
.nc-popup-card p.ql-align-center { text-align: center; }
.nc-popup-card .ql-align-right,
.nc-popup-card p.ql-align-right { text-align: right; }
.nc-popup-card .ql-align-justify,
.nc-popup-card p.ql-align-justify { text-align: justify; }
.nc-popup-card .ql-size-small { font-size: 0.75em; }
.nc-popup-card .ql-size-large { font-size: 1.5em; }
.nc-popup-card .ql-size-huge { font-size: 2em; }
.nc-popup-card p { margin: 0 0 0.4em 0; }
.nc-popup-card h1 { font-size: 1.6em; margin: 0.4em 0; }
.nc-popup-card h2 { font-size: 1.3em; margin: 0.4em 0; }
.nc-popup-card h3 { font-size: 1.1em; margin: 0.4em 0; }
.nc-popup-card ol { padding-left: 1.5em; list-style: decimal; }
.nc-popup-card ul { padding-left: 1.5em; list-style: disc; }

/* 공지/이벤트 본문 영역에서도 동일 적용 */
.nc-detail .ql-align-center,
.nc-detail p.ql-align-center { text-align: center; }
.nc-detail .ql-align-right,
.nc-detail p.ql-align-right { text-align: right; }
.nc-detail .ql-align-justify,
.nc-detail p.ql-align-justify { text-align: justify; }
.nc-detail .ql-size-small { font-size: 0.75em; }
.nc-detail .ql-size-large { font-size: 1.5em; }
.nc-detail .ql-size-huge { font-size: 2em; }
.nc-detail .ql-size-huge { font-size: 2em; }

/* ★ 2026-05-11 slot-game-grid-6col-scale: 컬럼 6개 고정 + 카드 비례 확대 + 모바일 2컬럼 */
#slot-game-grid {
  display: grid !important;
  gap: clamp(8px, 0.6vw, 16px) !important;
  grid-template-columns: repeat(6, 1fr) !important;
}
#slot-game-grid img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 5/4 !important;
  object-fit: contain !important;
}
#slot-game-grid > div > div:last-child {
  font-size: clamp(0.75rem, 0.75vw, 1.2rem) !important;
  padding: clamp(4px, 0.4vw, 12px) clamp(5px, 0.5vw, 14px) !important;
}
@media (max-width: 600px) { #slot-game-grid { grid-template-columns: repeat(2, 1fr) !important; } }
