/* ============================================================
   PRO9 · COMPLETE VISUAL REBOOT
   메인부터 완전 다른 초고퀄 디자인
   ============================================================ */

:root {
  --bg0: #07050a;
  --bg1: #0e0a12;
  --bg2: #15101c;
  --gold: #f0d78c;
  --gold2: #d4b45a;
  --gold3: #a88b3c;
  --text: #f4efe6;
  --muted: #9a8f7a;
  --line: rgba(240, 215, 140, 0.18);
  --glass: rgba(20, 14, 28, 0.72);
  --glow: 0 0 60px rgba(240, 215, 140, 0.15);
}

/* ===== BODY & BACKDROP — 완전 교체 ===== */
html, body {
  background: var(--bg0) !important;
  color: var(--text) !important;
}

.site-backdrop {
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(240, 215, 140, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(120, 40, 90, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(40, 60, 120, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #0a0710 0%, #07050a 40%, #0c0814 100%) !important;
  animation: none !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(240,215,140,0.35), transparent),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(240,215,140,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.15), transparent),
    radial-gradient(1.5px 1.5px at 130px 80px, rgba(240,215,140,0.25), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.1), transparent);
  background-size: 200px 150px !important;
  opacity: 0.5 !important;
  animation: starDrift 40s linear infinite !important;
}
@keyframes starDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  pointer-events: none !important;
  opacity: 0.03 !important;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") !important;
  mix-blend-mode: overlay !important;
}

/* ===== HEADER — 글래스 + 골드 라인 ===== */
.site-header {
  background: rgba(8, 6, 14, 0.85) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4) !important;
}

.brand-mark {
  background: linear-gradient(135deg, #1a1424, #0e0a14) !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 20px rgba(240,215,140,0.2), inset 0 0 12px rgba(240,215,140,0.08) !important;
}

.brand-text {
  color: var(--gold) !important;
  letter-spacing: 0.22em !important;
}
.brand-text small {
  color: var(--muted) !important;
  letter-spacing: 0.28em !important;
}

.nav a {
  color: var(--muted) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: color 0.25s !important;
}
.nav a:hover {
  color: var(--gold) !important;
}

.button-gold {
  background: linear-gradient(135deg, #e8c96a 0%, #c9a84c 50%, #a88b3c 100%) !important;
  color: #1a1208 !important;
  border: none !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 4px 20px rgba(240,215,140,0.25), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.button-gold:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(240,215,140,0.4), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

.button-outline, .button-transparent {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--gold) !important;
}
.button-outline:hover, .button-transparent:hover {
  background: rgba(240,215,140,0.08) !important;
  border-color: var(--gold) !important;
}

/* ===== HERO — 완전 재디자인 ===== */
.hero {
  position: relative !important;
  min-height: 92vh !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 100px 0 80px !important;
}

.hero-image {
  display: none !important; /* 기존 사진 제거 */
}

.hero-shade {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(240,215,140,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(180,80,140,0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(7,5,10,0.3) 50%, var(--bg0) 100%) !important;
  z-index: 0 !important;
}

/* 중앙 발광 오브 */
.hero::before {
  content: "" !important;
  position: absolute !important;
  width: 600px !important;
  height: 600px !important;
  left: 50% !important;
  top: 35% !important;
  transform: translate(-50%, -50%) !important;
  background: radial-gradient(circle, rgba(240,215,140,0.12) 0%, rgba(240,215,140,0.04) 35%, transparent 70%) !important;
  filter: blur(40px) !important;
  z-index: 0 !important;
  animation: heroGlow 8s ease-in-out infinite alternate !important;
}
@keyframes heroGlow {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0 !important;
  max-width: 820px !important;
}

.hero-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.hero .overline {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.35em !important;
  color: var(--gold) !important;
  margin-bottom: 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}
.hero .overline span {
  display: block !important;
  width: 40px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
}

.hero h1 {
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif !important;
  font-size: clamp(42px, 9vw, 72px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  filter: none !important;
  margin: 0 0 20px !important;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5) !important;
}
.hero h1 em {
  display: block !important;
  font-style: italic !important;
  background: linear-gradient(135deg, #fff8e0 0%, #f0d78c 40%, #d4b45a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 2px 20px rgba(240,215,140,0.3)) !important;
}

.hero-copy p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--muted) !important;
  max-width: 420px !important;
  margin: 0 auto 36px !important;
}

.hero-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 auto 32px !important;
}
.hero-actions .button {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.hero-actions .button-gold {
  background: linear-gradient(135deg, #f0d78c, #c9a84c) !important;
  color: #1a1208 !important;
  box-shadow: 0 6px 28px rgba(240,215,140,0.3) !important;
}
.hero-actions .button-transparent {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(240,215,140,0.25) !important;
  color: var(--gold) !important;
  backdrop-filter: blur(8px) !important;
}

.hero-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  color: var(--muted) !important;
  flex-wrap: wrap !important;
}
.hero-meta i {
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--gold3) !important;
  display: inline-block !important;
}

/* 티켓 숨김 (모바일 중심이므로) */
.hero-ticket {
  display: none !important;
}

.hero-index {
  display: none !important;
}

/* ===== LIVE POINTS / 게임방법 바 ===== */
.live-points, [class*="live-point"], .lp-bar {
  background: rgba(12, 8, 18, 0.9) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 999px !important;
}

/* ===== MEMBER BAR ===== */
.member-bar {
  background: linear-gradient(135deg, rgba(30,22,40,0.9), rgba(18,12,26,0.95)) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), var(--glow) !important;
}

/* ===== SECTION HEADINGS ===== */
.section-heading h2 {
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif !important;
  font-size: clamp(28px, 6vw, 40px) !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.section-heading .overline {
  color: var(--gold) !important;
  letter-spacing: 0.28em !important;
}

/* ===== GAME CARDS — 글래스 모던 ===== */
.game-card {
  background: linear-gradient(165deg, rgba(28, 20, 38, 0.9), rgba(14, 10, 20, 0.95)) !important;
  border: 1px solid rgba(240,215,140,0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s, box-shadow 0.4s !important;
}
.game-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  border-color: rgba(240,215,140,0.4) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(240,215,140,0.1) !important;
}
.game-card-art {
  background: radial-gradient(ellipse at 50% 0%, rgba(240,215,140,0.12), transparent 60%),
              linear-gradient(180deg, #1c1428, #100c18) !important;
}
.game-card-art[data-tone="ruby"] {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,80,100,0.18), transparent 55%),
              linear-gradient(180deg, #221018, #14080e) !important;
}
.game-card-art[data-tone="emerald"] {
  background: radial-gradient(ellipse at 50% 0%, rgba(46,230,166,0.14), transparent 55%),
              linear-gradient(180deg, #101c18, #080e0c) !important;
}
.game-card-art[data-tone="sapphire"] {
  background: radial-gradient(ellipse at 50% 0%, rgba(91,157,255,0.16), transparent 55%),
              linear-gradient(180deg, #10182a, #080c16) !important;
}
.game-card-art[data-tone="violet"] {
  background: radial-gradient(ellipse at 50% 0%, rgba(180,120,255,0.16), transparent 55%),
              linear-gradient(180deg, #1a1028, #0e0818) !important;
}
.game-card-art[data-tone="amber"] {
  background: radial-gradient(ellipse at 50% 0%, rgba(240,180,60,0.18), transparent 55%),
              linear-gradient(180deg, #221810, #140e08) !important;
}
.game-card-info b {
  color: var(--text) !important;
  font-weight: 700 !important;
}
.game-card-info span {
  color: var(--muted) !important;
}

/* ===== FILTER TABS ===== */
.game-tabs .filter {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid transparent !important;
  color: var(--muted) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: all 0.25s !important;
}
.game-tabs .filter.active,
.game-tabs .filter:hover {
  background: rgba(240,215,140,0.12) !important;
  border-color: var(--line) !important;
  color: var(--gold) !important;
}

/* ===== INSTAGRAM BANNER ===== */
.igb {
  background: linear-gradient(135deg, rgba(30,20,40,0.9), rgba(18,12,26,0.95)) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
}

/* ===== MODAL / GAME STAGE ===== */
.game-modal .modal-panel,
.modal.game-modal > div {
  background: linear-gradient(180deg, #14101c, #0c0a12) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--glow) !important;
}

.g3-stage {
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(240,215,140,0.06), transparent 70%),
    linear-gradient(180deg, #14101c, #0c0a12) !important;
  border: 1px solid rgba(240,215,140,0.1) !important;
  border-radius: 16px !important;
}

/* ===== FOOTER ===== */
footer, .site-footer {
  background: var(--bg0) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

/* ===== MOBILE 최적화 ===== */
@media (max-width: 760px) {
  .hero {
    min-height: 85vh !important;
    padding: 80px 0 60px !important;
  }
  .hero h1 {
    font-size: 40px !important;
  }
  .hero-copy p {
    font-size: 13px !important;
    max-width: 300px !important;
  }
  .hero-actions {
    max-width: 280px !important;
  }
  .nav {
    gap: 12px !important;
  }
}

/* lite 모드 안전 */
html.lite body::before,
html.lite body::after {
  display: none !important;
}
html.lite .hero::before {
  animation: none !important;
}
html.lite .site-header {
  backdrop-filter: none !important;
}

/* ============================================================
   FLASHY TIKTOK BANNERS — illegal-site style
   ============================================================ */
.tt-banner-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 0;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.tt-banner {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  box-shadow:
    0 0 20px rgba(255, 50, 80, 0.35),
    0 0 40px rgba(255, 200, 50, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tt-banner:active {
  transform: scale(0.98);
}

.tt-banner-a {
  background: linear-gradient(105deg, #1a0a2e 0%, #3d0a2e 40%, #1a0a2e 100%);
}
.tt-banner-b {
  background: linear-gradient(105deg, #0a1a2e 0%, #0a2e3d 40%, #0a1a2e 100%);
  border-color: rgba(0, 220, 255, 0.4);
  box-shadow:
    0 0 20px rgba(0, 180, 255, 0.3),
    0 0 40px rgba(0, 220, 255, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.tt-banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: bannerShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bannerShine {
  0% { transform: translateX(-120%); }
  50%, 100% { transform: translateX(120%); }
}

.tt-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.tt-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff2d55, #ff6b00);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 45, 85, 0.6);
  animation: badgePulse 1.4s ease-in-out infinite;
}
.tt-badge-alt {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.6);
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.tt-icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.5));
}

.tt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tt-info b {
  font-size: 13px;
  font-weight: 800;
  color: #ffe9a0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-banner-b .tt-info b {
  color: #a8e8ff;
}
.tt-info small {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-cta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1208;
  background: linear-gradient(135deg, #ffe9a0, #f0c050);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(240, 200, 50, 0.4);
  white-space: nowrap;
}
.tt-banner-b .tt-cta {
  background: linear-gradient(135deg, #a8e8ff, #40c0ff);
  color: #061820;
  box-shadow: 0 2px 12px rgba(0, 180, 255, 0.4);
}

/* Marquee */
.tt-marquee {
  overflow: hidden;
  background: linear-gradient(90deg, #1a0a00, #2a1000, #1a0a00);
  border-top: 1px solid rgba(255, 180, 50, 0.25);
  border-bottom: 1px solid rgba(255, 180, 50, 0.25);
  padding: 7px 0;
  margin-top: 8px;
  position: relative;
  z-index: 10;
}
.tt-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd060;
  text-shadow: 0 0 8px rgba(255, 180, 50, 0.5);
  white-space: nowrap;
}
.tt-marquee-track span {
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero text symmetry fix */
.hero .overline {
  justify-content: center !important;
}
.hero .overline span {
  width: 32px !important;
}
.hero-meta {
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  text-align: center !important;
}
.hero-meta span {
  white-space: nowrap !important;
}
.hero-meta i {
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: var(--gold3) !important;
  flex-shrink: 0 !important;
}

/* Reduce hero top padding since banners take space */
.hero {
  min-height: 72vh !important;
  padding: 40px 0 50px !important;
}

@media (max-width: 760px) {
  .tt-banner-wrap {
    padding: 8px 10px 0;
  }
  .tt-banner-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .tt-info b {
    font-size: 12px;
  }
  .tt-cta {
    padding: 7px 10px;
    font-size: 10px;
  }
  .hero {
    min-height: 65vh !important;
    padding: 28px 0 40px !important;
  }
}

html.lite .tt-banner-shine,
html.lite .tt-marquee-track {
  animation: none !important;
}
html.lite .tt-badge {
  animation: none !important;
}

/* ============================================================
   NEON ILLEGAL-SITE BANNERS v2 — 과한 네온 반짝 배너
   ============================================================ */
.neon-banners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 0;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.neon-ban {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  min-height: 72px;
  border: 2px solid transparent;
  transition: transform 0.2s;
}
.neon-ban:active { transform: scale(0.985); }

/* Banner 1 — Red/Gold/Pink neon */
.neon-ban-1 {
  border-color: #ff2d6a;
  box-shadow:
    0 0 8px #ff2d6a,
    0 0 20px rgba(255,45,106,0.5),
    0 0 40px rgba(255,100,50,0.25),
    inset 0 0 20px rgba(255,45,106,0.15);
  animation: neonBorder1 2s ease-in-out infinite alternate;
}
@keyframes neonBorder1 {
  0% { box-shadow: 0 0 8px #ff2d6a, 0 0 20px rgba(255,45,106,0.5), 0 0 40px rgba(255,100,50,0.2), inset 0 0 15px rgba(255,45,106,0.1); }
  100% { box-shadow: 0 0 14px #ff6b00, 0 0 30px rgba(255,100,50,0.7), 0 0 55px rgba(255,200,50,0.35), inset 0 0 25px rgba(255,100,50,0.2); }
}

/* Banner 2 — Cyan/Blue neon */
.neon-ban-2 {
  border-color: #00e5ff;
  box-shadow:
    0 0 8px #00e5ff,
    0 0 20px rgba(0,229,255,0.5),
    0 0 40px rgba(0,150,255,0.25),
    inset 0 0 20px rgba(0,229,255,0.12);
  animation: neonBorder2 2s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}
@keyframes neonBorder2 {
  0% { box-shadow: 0 0 8px #00e5ff, 0 0 20px rgba(0,229,255,0.45), 0 0 40px rgba(0,150,255,0.2), inset 0 0 15px rgba(0,229,255,0.1); }
  100% { box-shadow: 0 0 14px #00ffaa, 0 0 30px rgba(0,255,180,0.6), 0 0 55px rgba(0,200,255,0.3), inset 0 0 25px rgba(0,255,200,0.15); }
}

.neon-ban-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #1a0020 0%, #3d0030 25%, #1a0028 50%, #2a0018 75%, #1a0020 100%);
  background-size: 200% 100%;
  animation: banBgShift 4s linear infinite;
}
.neon-ban-2 .neon-ban-bg {
  background: linear-gradient(110deg, #001428 0%, #002a40 25%, #001830 50%, #002238 75%, #001428 100%);
  background-size: 200% 100%;
}
@keyframes banBgShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.neon-ban-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 20% 50%, rgba(255,50,100,0.25), transparent 60%),
              radial-gradient(ellipse 60% 100% at 80% 50%, rgba(255,180,50,0.15), transparent 50%);
  pointer-events: none;
  animation: banGlowPulse 2.5s ease-in-out infinite alternate;
}
.neon-ban-2 .neon-ban-glow {
  background: radial-gradient(ellipse 80% 120% at 20% 50%, rgba(0,200,255,0.22), transparent 60%),
              radial-gradient(ellipse 60% 100% at 80% 50%, rgba(0,255,180,0.12), transparent 50%);
}
@keyframes banGlowPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Scanning light */
.neon-ban-scan {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: banScan 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes banScan {
  0% { left: -40%; }
  100% { left: 120%; }
}

.neon-ban-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 72px;
}

.neon-ban-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
  min-width: 70px;
}
.neon-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  animation: tagBlink 1s step-end infinite;
}
.neon-tag-red {
  background: linear-gradient(90deg, #ff0040, #ff6b00);
  box-shadow: 0 0 10px rgba(255,0,60,0.7);
  text-shadow: 0 0 6px #fff;
}
.neon-tag-cyan {
  background: linear-gradient(90deg, #00c6ff, #00ff88);
  box-shadow: 0 0 10px rgba(0,200,255,0.7);
  text-shadow: 0 0 6px #fff;
}
@keyframes tagBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.neon-brand {
  font-size: 11px;
  font-weight: 900;
  color: #ffe066;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(255,200,50,0.8);
}
.neon-ban-2 .neon-brand {
  color: #80f0ff;
  text-shadow: 0 0 8px rgba(0,220,255,0.8);
}
.neon-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.neon-ban-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.neon-big {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffee88, #ff6b00, #ff0040, #ffee88);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: bigTextShift 2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,100,50,0.6));
  line-height: 1.1;
}
.neon-big-cyan {
  background: linear-gradient(90deg, #a0ffff, #00e5ff, #00ff88, #a0ffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(0,220,255,0.6));
}
@keyframes bigTextShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.neon-id {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.neon-promo {
  font-size: 10px;
  font-weight: 700;
  color: #ffcc66;
  text-shadow: 0 0 6px rgba(255,180,50,0.5);
}
.neon-ban-2 .neon-promo {
  color: #80e8ff;
  text-shadow: 0 0 6px rgba(0,200,255,0.5);
}

.neon-ban-right {
  flex-shrink: 0;
}
.neon-btn {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #1a0800;
  background: linear-gradient(135deg, #ffe066, #ff6b00, #ff0040);
  background-size: 200% 100%;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255,80,50,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: btnShine 1.8s linear infinite;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.neon-btn-cyan {
  background: linear-gradient(135deg, #a0ffff, #00e5ff, #00ff88);
  background-size: 200% 100%;
  color: #002018;
  box-shadow: 0 0 16px rgba(0,200,255,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
@keyframes btnShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Neon marquee */
.neon-marquee {
  overflow: hidden;
  background: linear-gradient(90deg, #1a0008, #2a0010, #1a0008);
  border-top: 1px solid #ff2d6a;
  border-bottom: 1px solid #ff2d6a;
  box-shadow: 0 0 12px rgba(255,45,106,0.3), inset 0 0 20px rgba(255,45,106,0.08);
  padding: 6px 0;
  margin-top: 6px;
  position: relative;
  z-index: 20;
}
.neon-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: neonMarquee 18s linear infinite;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffcc66;
  text-shadow: 0 0 8px rgba(255,150,50,0.7);
  white-space: nowrap;
}
.neon-marquee-track .nm-hl {
  color: #fff;
  text-shadow: 0 0 10px #ff2d6a, 0 0 20px rgba(255,45,106,0.5);
  animation: hlBlink 1.2s step-end infinite;
}
@keyframes neonMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes hlBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Hero adjust for banners */
.hero {
  min-height: 60vh !important;
  padding: 24px 0 36px !important;
}

@media (max-width: 760px) {
  .neon-banners { padding: 6px 6px 0; gap: 5px; }
  .neon-ban { min-height: 64px; }
  .neon-ban-content { padding: 8px 10px; gap: 6px; min-height: 64px; }
  .neon-ban-left { min-width: 58px; }
  .neon-big { font-size: 18px; }
  .neon-id { font-size: 11px; }
  .neon-promo { font-size: 9px; }
  .neon-btn { font-size: 11px; padding: 8px 10px; }
  .neon-brand { font-size: 10px; }
  .neon-sub { font-size: 8px; }
  .hero { min-height: 55vh !important; padding: 18px 0 30px !important; }
}

html.lite .neon-ban-1,
html.lite .neon-ban-2 {
  animation: none !important;
  box-shadow: 0 0 10px rgba(255,45,106,0.4) !important;
}
html.lite .neon-ban-2 {
  box-shadow: 0 0 10px rgba(0,200,255,0.4) !important;
}
html.lite .neon-ban-bg,
html.lite .neon-ban-glow,
html.lite .neon-ban-scan,
html.lite .neon-big,
html.lite .neon-btn,
html.lite .neon-marquee-track,
html.lite .neon-tag {
  animation: none !important;
}

/* ============================================================
   RANK BOARD — 관리자 서열 (초화려)
   ============================================================ */
.rank-board {
  position: relative;
  margin: 22px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(240, 215, 140, 0.25);
  background: linear-gradient(165deg, rgba(22,14,30,0.95), rgba(10,6,16,0.98));
  box-shadow:
    0 12px 40px rgba(0,0,0,0.45),
    0 0 40px rgba(240,215,140,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.rank-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(240,215,140,0.12);
  overflow: hidden;
}
.rank-header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 30% 50%, rgba(240,215,140,0.12), transparent 70%);
  pointer-events: none;
  animation: rankHeadPulse 3s ease-in-out infinite alternate;
}
@keyframes rankHeadPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
.rank-crown {
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(240,215,140,0.7));
  animation: crownFloat 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}
.rank-title-wrap {
  flex: 1;
  position: relative;
  z-index: 1;
}
.rank-title-wrap small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(240,215,140,0.7);
  margin-bottom: 2px;
}
.rank-title-wrap h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.rank-title-wrap h2 em {
  font-style: italic;
  background: linear-gradient(90deg, #ffe9a0, #f0d78c, #d4b45a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rank-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #ff4d6d;
  background: rgba(255,45,80,0.12);
  border: 1px solid rgba(255,45,80,0.35);
  padding: 5px 10px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  animation: livePulse 1.4s ease-in-out infinite;
}
.rank-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 8px #ff2d55;
  animation: liveDot 1s step-end infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255,45,85,0); }
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
}

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px auto 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.rank-card:last-child { margin-bottom: 0; }
.rank-card:hover {
  transform: translateY(-2px);
}

.rank-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%);
  animation: rankShine 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rankShine {
  0% { transform: translateX(-100%); }
  40%, 100% { transform: translateX(100%); }
}

/* Boss — gold supreme */
.rank-boss {
  background: linear-gradient(120deg, rgba(60,40,10,0.7), rgba(40,25,5,0.5), rgba(60,40,10,0.7));
  border-color: rgba(240,215,140,0.45) !important;
  box-shadow: 0 0 24px rgba(240,215,140,0.2), inset 0 0 30px rgba(240,215,140,0.06);
  animation: bossGlow 2.5s ease-in-out infinite alternate;
}
@keyframes bossGlow {
  0% { box-shadow: 0 0 16px rgba(240,215,140,0.15), inset 0 0 20px rgba(240,215,140,0.04); }
  100% { box-shadow: 0 0 32px rgba(240,215,140,0.35), inset 0 0 40px rgba(240,215,140,0.1); }
}
.rank-casino {
  background: linear-gradient(120deg, rgba(40,12,20,0.55), rgba(25,8,14,0.4));
  border-color: rgba(255,80,100,0.25) !important;
}
.rank-sports {
  background: linear-gradient(120deg, rgba(10,30,20,0.55), rgba(6,18,12,0.4));
  border-color: rgba(46,230,166,0.22) !important;
}
.rank-hwatu {
  background: linear-gradient(120deg, rgba(30,15,40,0.55), rgba(18,8,28,0.4));
  border-color: rgba(180,120,255,0.22) !important;
}

.rank-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(240,215,140,0.5);
  text-align: center;
}
.rank-boss .rank-num {
  color: #f0d78c;
  text-shadow: 0 0 10px rgba(240,215,140,0.6);
}

.rank-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}
.rank-badge-boss {
  background: linear-gradient(135deg, #f0d78c, #c9a84c);
  color: #1a1208;
  box-shadow: 0 0 12px rgba(240,215,140,0.5);
  animation: badgeBossPulse 1.8s ease-in-out infinite;
}
@keyframes badgeBossPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(240,215,140,0.4); }
  50% { box-shadow: 0 0 18px rgba(240,215,140,0.75); }
}
.rank-badge-casino {
  background: linear-gradient(135deg, #ff4d6d, #c0392b);
  box-shadow: 0 0 10px rgba(255,77,109,0.4);
}
.rank-badge-sports {
  background: linear-gradient(135deg, #2ee6a6, #1a9e6e);
  color: #062018;
  box-shadow: 0 0 10px rgba(46,230,166,0.35);
}
.rank-badge-hwatu {
  background: linear-gradient(135deg, #b794ff, #7c4dff);
  box-shadow: 0 0 10px rgba(183,148,255,0.4);
}

.rank-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
}
.rank-avatar-boss {
  background: linear-gradient(135deg, rgba(240,215,140,0.25), rgba(200,160,60,0.15));
  border-color: rgba(240,215,140,0.5);
  box-shadow: 0 0 16px rgba(240,215,140,0.3);
  font-size: 22px;
  animation: avatarBoss 2s ease-in-out infinite;
}
@keyframes avatarBoss {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.rank-boss .rank-name {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #f5e6a8;
  background-clip: unset;
  color: #f5e6a8 !important;
  text-shadow: 0 0 12px rgba(240,215,140,0.7), 0 0 24px rgba(240,215,140,0.35);
  filter: none;
  font-size: 16px;
}
.rank-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.rank-pts {
  text-align: right;
  flex-shrink: 0;
  min-width: 90px;
}
.rank-pts small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.rank-pts strong {
  font-size: 15px;
  font-weight: 800;
  color: #f0d78c;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(240,215,140,0.35);
  letter-spacing: -0.02em;
}
.rank-boss .rank-pts strong {
  font-size: 17px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffe9a0;
  background-clip: unset;
  color: #ffe9a0 !important;
  text-shadow: 0 0 10px rgba(240,215,140,0.65), 0 0 20px rgba(240,215,140,0.3);
  filter: none;
  animation: ptsGlow 2s ease-in-out infinite alternate;
}
@keyframes ptsGlow {
  0% { text-shadow: 0 0 8px rgba(240,215,140,0.45), 0 0 14px rgba(240,215,140,0.2); }
  100% { text-shadow: 0 0 14px rgba(240,215,140,0.85), 0 0 28px rgba(240,215,140,0.4); }
}

.rank-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 2px;
}
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0d78c, #ff6b00);
  box-shadow: 0 0 8px rgba(240,215,140,0.5);
  transition: width 1s cubic-bezier(0.2,0.8,0.2,1);
}
.rank-casino .rank-bar i { background: linear-gradient(90deg, #ff4d6d, #ff8a9a); box-shadow: 0 0 8px rgba(255,77,109,0.4); }
.rank-sports .rank-bar i { background: linear-gradient(90deg, #2ee6a6, #7af0c8); box-shadow: 0 0 8px rgba(46,230,166,0.4); }
.rank-hwatu .rank-bar i { background: linear-gradient(90deg, #b794ff, #d4b8ff); box-shadow: 0 0 8px rgba(183,148,255,0.4); }

@media (max-width: 760px) {
  .rank-card {
    grid-template-columns: 28px auto 36px 1fr;
    gap: 8px;
    padding: 10px 10px 12px;
  }
  .rank-pts {
    grid-column: 2 / -1;
    text-align: left;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .rank-pts small { margin-bottom: 0; }
  .rank-badge { font-size: 8px; padding: 3px 6px; }
  .rank-name { font-size: 14px; }
  .rank-boss .rank-name { font-size: 15px; }
  .rank-pts strong { font-size: 14px; }
  .rank-boss .rank-pts strong { font-size: 15px; }
  .rank-avatar { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  .rank-title-wrap h2 { font-size: 18px; }
}

html.lite .rank-boss,
html.lite .rank-crown,
html.lite .rank-avatar-boss,
html.lite .rank-badge-boss,
html.lite .rank-live,
html.lite .rank-card-shine,
html.lite .rank-boss .rank-pts strong {
  animation: none !important;
}

.rank-pts-pop {
  animation: rankPtsPop 0.45s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes rankPtsPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ===== Global polish pass ===== */
.site-header {
  border-bottom-color: rgba(240,215,140,0.14) !important;
}
.rank-board {
  border-radius: 20px !important;
}
.neon-banners {
  max-width: 580px;
}
.hero-copy p {
  letter-spacing: -0.01em;
}
.game-card {
  border-radius: 18px !important;
}
.igb {
  border-radius: 18px !important;
}


/* inapp: kill heavy pro9 continuous effects */
html.inapp body::before,
html.inapp body::after,
html.kakao body::before,
html.kakao body::after {
  display: none !important;
  animation: none !important;
}
html.inapp .hero::before,
html.kakao .hero::before {
  display: none !important;
  animation: none !important;
}
html.inapp .neon-big,
html.inapp .neon-rainbow,
html.kakao .neon-big,
html.kakao .neon-rainbow {
  animation: none !important;
  background: #f0d78c !important;
  -webkit-text-fill-color: #f0d78c !important;
  color: #f0d78c !important;
}

/* ===== 카톡/인앱: 틱톡 배너 글자 안 보이는 버그 + 렉 수정 ===== */
html.inapp .neon-big,
html.kakao .neon-big,
html.soft .neon-big,
html.inapp .neon-big-cyan,
html.kakao .neon-big-cyan,
html.soft .neon-big-cyan {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffe066 !important;
  color: #ffe066 !important;
  filter: none !important;
  animation: none !important;
  text-shadow: 0 0 8px rgba(255,200,50,0.5) !important;
}
html.inapp .neon-big-cyan,
html.kakao .neon-big-cyan,
html.soft .neon-big-cyan {
  -webkit-text-fill-color: #80f0ff !important;
  color: #80f0ff !important;
}
html.inapp .neon-id,
html.kakao .neon-id,
html.soft .neon-id {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  filter: none !important;
}
html.inapp .neon-promo,
html.kakao .neon-promo,
html.soft .neon-promo {
  color: #ffcc66 !important;
  -webkit-text-fill-color: #ffcc66 !important;
  filter: none !important;
}
html.inapp .neon-ban-2 .neon-promo,
html.kakao .neon-ban-2 .neon-promo {
  color: #80e8ff !important;
  -webkit-text-fill-color: #80e8ff !important;
}
html.inapp .neon-ban-bg,
html.inapp .neon-ban-glow,
html.inapp .neon-ban-scan,
html.kakao .neon-ban-bg,
html.kakao .neon-ban-glow,
html.kakao .neon-ban-scan {
  display: none !important;
  animation: none !important;
}
html.inapp .neon-ban,
html.kakao .neon-ban {
  animation: none !important;
  filter: none !important;
  background: #1a1020 !important;
}
html.inapp .neon-ban-1,
html.kakao .neon-ban-1 {
  border: 2px solid #ff4d8d !important;
  box-shadow: 0 0 12px rgba(255,40,100,0.35) !important;
}
html.inapp .neon-ban-2,
html.kakao .neon-ban-2 {
  border: 2px solid #00e5ff !important;
  box-shadow: 0 0 12px rgba(0,220,255,0.3) !important;
}
html.inapp .neon-tag,
html.kakao .neon-tag {
  animation: none !important;
}
html.inapp .neon-marquee-track,
html.kakao .neon-marquee-track {
  animation: none !important;
  transform: none !important;
  justify-content: center;
  flex-wrap: wrap;
  white-space: normal;
}
html.inapp .neon-marquee,
html.kakao .neon-marquee {
  overflow: hidden;
  max-height: 36px;
}
/* 인앱 성능: 장식 레이어 최소화 */
html.inapp .rank-card-shine,
html.kakao .rank-card-shine {
  display: none !important;
}
