/* ==========================================================================
   Design System & Theme Tokens - 대한민국 No.1 바카라사이트
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --bg-dark: #04050d;
  --bg-card: rgba(13, 15, 35, 0.85);
  --bg-card-hover: rgba(22, 25, 55, 0.95);
  --border-gold: rgba(255, 193, 7, 0.35);
  --border-glow: rgba(157, 78, 221, 0.35);
  
  --primary-gold: #ffc107;
  --primary-purple: #9d4edd;
  --primary-cyan: #00f5d4;
  --primary-red: #ff3366;
  
  --text-main: #f8f9ff;
  --text-muted: #9aa0c7;
  
  --shadow-gold: 0 0 30px rgba(255, 193, 7, 0.3);
  --shadow-purple: 0 0 30px rgba(157, 78, 221, 0.35);
  --shadow-cyan: 0 0 30px rgba(0, 245, 212, 0.35);
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 193, 7, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 45%, rgba(157, 78, 221, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(0, 245, 212, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 75px;
  word-break: keep-all; /* Prevent unnatural Korean line breaks */
  overflow-wrap: break-word;
}

/* Helper Class to enforce no wrapping */
.nobr {
  white-space: nowrap;
  display: inline-block;
}

.keep-all {
  word-break: keep-all;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 5, 13, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 193, 7, 0.15);
  padding: 12px 18px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.logo-badge {
  background: linear-gradient(135deg, #ffc107, #ff9100);
  color: #04050d;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-text {
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
  word-break: keep-all;
}

.logo-text span {
  color: var(--primary-gold);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-gold);
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.nav-cta-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  padding: 7px 14px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap; /* Prevent button text wrapping */
  word-break: keep-all;
}

.nav-btn-kakao {
  background: #FEE500;
  color: #191919;
  box-shadow: 0 0 15px rgba(254, 229, 0, 0.25);
}

.nav-btn-telegram {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  box-shadow: 0 0 15px rgba(42, 171, 238, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .header {
    padding: 10px 12px;
  }
  .nav-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .logo-badge {
    padding: 3px 6px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Hero Section with Image Overlay
   ========================================================================== */
.hero {
  position: relative;
  padding: 40px 16px 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-gold);
  background: #0d0f25;
  min-height: 360px;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.35) contrast(1.1);
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 16px;
  background: radial-gradient(circle at center, rgba(4, 5, 13, 0.3) 0%, rgba(4, 5, 13, 0.88) 90%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid var(--primary-gold);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 16px;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  animation: pulse-gold 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse-gold {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -1px;
  word-break: keep-all;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-gold) 80%, #ff9100 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  color: #e2e6ff;
  font-weight: 500;
  margin-bottom: 26px;
  max-width: 700px;
  word-break: keep-all;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-cta {
    width: 100%;
    padding: 13px 16px;
  }
}

.btn-kakao {
  background: #FEE500;
  color: #191919;
  box-shadow: 0 0 25px rgba(254, 229, 0, 0.4);
}

.btn-kakao:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(254, 229, 0, 0.7);
}

.btn-telegram {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(42, 171, 238, 0.4);
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(42, 171, 238, 0.7);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: #fff;
  word-break: keep-all;
}

/* ==========================================================================
   Game Showcase Cards with Images
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}

.game-img-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-img {
  transform: scale(1.08);
}

.game-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 5, 13, 0.85);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.game-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  word-break: keep-all;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 18px;
  word-break: keep-all;
}

.game-btn-group {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-game-contact {
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  word-break: keep-all;
}

.btn-game-kakao {
  background: rgba(254, 229, 0, 0.15);
  border: 1px solid #FEE500;
  color: #FEE500;
}

.btn-game-kakao:hover {
  background: #FEE500;
  color: #191919;
}

.btn-game-tele {
  background: rgba(42, 171, 238, 0.15);
  border: 1px solid #2AABEE;
  color: #2AABEE;
}

.btn-game-tele:hover {
  background: #2AABEE;
  color: #fff;
}

/* ==========================================================================
   Trust & Guarantee Banner
   ========================================================================== */
.trust-banner {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(157, 78, 221, 0.15));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-gold);
}

@media (max-width: 768px) {
  .trust-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.trust-info h3 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 10px;
  color: #fff;
  word-break: keep-all;
}

.trust-badge-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.t-badge {
  background: rgba(4, 5, 13, 0.6);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: var(--primary-gold);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.trust-cta-box {
  background: rgba(4, 5, 13, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   VIP Benefits Grid
   ========================================================================== */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.perk-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.3s ease;
}

.perk-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
}

.perk-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.perk-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  word-break: keep-all;
}

.perk-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
  word-break: keep-all;
}

.perk-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-gold);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.2s ease;
  white-space: nowrap;
}

.perk-link-btn:hover {
  gap: 10px;
}

/* ==========================================================================
   Footer & Floating Elements
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 193, 7, 0.15);
  padding: 40px 16px 25px;
  text-align: center;
  background: rgba(4, 5, 13, 0.95);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.age-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
  white-space: nowrap;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  word-break: keep-all;
}

/* Floating Kakao & Telegram Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 25px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.float-btn-kakao {
  background: #FEE500;
  color: #191919;
}

.float-btn-tele {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
}

.float-btn:hover {
  transform: scale(1.1);
}

/* Mobile Fixed Bottom Navigation Bar - Only Kakao & Telegram */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(4, 5, 13, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 193, 7, 0.25);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  .nav-links {
    display: none;
  }
}

.mobile-nav-btn {
  flex: 1;
  height: 42px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
}
