/* 로비 전용 스타일 — 피망 뉴베가스 톤 */

.lobby-body {
  background: #050511;
  color: #fff;
  min-height: 100vh;
  position: relative;
}

/* 풀스크린 히어로 백드롭 (그라디언트 + 패턴) */
.hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(186, 85, 211, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255, 165, 0, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0a0520 0%, #0d0825 50%, #050511 100%);
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30px 30px, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 60px 60px, rgba(255,209,102,0.03) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px;
  opacity: 0.5;
}

/* 헤더 */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 5, 32, 0.85);
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
}
.brand-icon { font-size: 1.8rem; filter: drop-shadow(0 0 12px rgba(255,209,102,0.7)); }
.brand-text { color: #fff; letter-spacing: 1.5px; }
.brand-accent {
  background: linear-gradient(135deg, #ffd166 0%, #ff9933 50%, #ff5e7e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255,209,102,0.3);
}

/* 헤더 사용자 영역 */
#user-area .balance-pill {
  background: linear-gradient(135deg, rgba(255,209,102,0.15), rgba(255,153,51,0.05));
  border: 1px solid rgba(255,209,102,0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #ffd166;
  font-size: 0.95rem;
}
#user-area .balance-pill .nick {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-right: 0.4rem;
  font-size: 0.85rem;
}

/* 히어로 */
.hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(186,85,211,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,209,102,0.15), transparent);
  border-top: 1px solid rgba(255,209,102,0.3);
  border-bottom: 1px solid rgba(255,209,102,0.3);
  padding: 0.5rem 2rem;
  color: #ffd166;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero-title-accent {
  background: linear-gradient(135deg, #ffd700 0%, #ff9933 50%, #ff5e7e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,209,102,0.5));
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 2rem 0;
}

/* 잭팟 티커 */
.jackpot-ticker {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, rgba(255,7,58,0.15), rgba(255,153,51,0.1));
  border: 2px solid rgba(255,209,102,0.5);
  border-radius: 16px;
  box-shadow:
    0 0 60px rgba(255,209,102,0.3),
    inset 0 0 30px rgba(255,153,51,0.1);
  animation: jackpot-glow 2s ease-in-out infinite alternate;
}
@keyframes jackpot-glow {
  0% { box-shadow: 0 0 40px rgba(255,209,102,0.3), inset 0 0 30px rgba(255,153,51,0.1); }
  100% { box-shadow: 0 0 80px rgba(255,209,102,0.6), inset 0 0 30px rgba(255,153,51,0.2); }
}
.jackpot-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: #ffd166;
  letter-spacing: 2px;
}
.jackpot-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff5e7e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

/* 섹션 헤더 */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  color: #fff;
}
.section-title::before, .section-title::after {
  content: '◆';
  color: #ffd166;
  margin: 0 0.6rem;
  font-size: 1.2rem;
  vertical-align: middle;
}
.section-sub { color: rgba(255,255,255,0.5); }

/* 게임 그리드 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* 게임 카드 — 큰 비주얼 + 호버 효과 */
.game-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  text-decoration: none;
  display: block;
  height: 380px;
  background: #1a0f3a;
  border: 1px solid rgba(255,255,255,0.1);
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255,209,102,0.3), 0 0 0 2px rgba(255,209,102,0.6);
}
.game-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  filter: brightness(0.55) saturate(1.2);
}
.game-card:hover .card-bg { transform: scale(1.08); filter: brightness(0.7) saturate(1.4); }
.game-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,5,32,0.4) 50%, rgba(10,5,32,0.95) 100%);
}
.game-card .card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 1;
}
.game-card .card-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8));
  align-self: flex-start;
  transform: scale(1) rotate(0);
  transition: transform 0.4s ease;
}
.game-card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }
.game-card .card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.game-card .card-title {
  font-family: 'Orbitron', 'Noto Sans KR', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  line-height: 1.1;
}
.game-card .card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.game-card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(255,209,102,0.25);
  border: 1px solid rgba(255,209,102,0.6);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  color: #ffd166;
  font-weight: 700;
  letter-spacing: 0.5px;
  align-self: flex-start;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.game-card .card-bet {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  font-family: 'Orbitron', sans-serif;
}
.game-card .card-play-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #ffd166, #ff5e7e);
  color: #0a0520;
  font-weight: 900;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(255,209,102,0.5);
  transition: transform 0.2s;
}
.game-card:hover .card-play-btn { transform: scale(1.08); }

/* 카드별 컬러 글로우 */
.game-card[data-theme="cyberpunk"]:hover { box-shadow: 0 20px 60px rgba(186,85,211,0.5), 0 0 0 2px rgba(186,85,211,0.7); }
.game-card[data-theme="pirate"]:hover    { box-shadow: 0 20px 60px rgba(255,140,0,0.5), 0 0 0 2px rgba(255,140,0,0.7); }
.game-card[data-theme="egypt"]:hover     { box-shadow: 0 20px 60px rgba(255,209,102,0.5), 0 0 0 2px rgba(255,209,102,0.7); }
.game-card[data-theme="candy"]:hover     { box-shadow: 0 20px 60px rgba(255,105,180,0.5), 0 0 0 2px rgba(255,105,180,0.7); }
.game-card[data-theme="oriental"]:hover  { box-shadow: 0 20px 60px rgba(220,20,60,0.5), 0 0 0 2px rgba(220,20,60,0.7); }

/* 어떻게 플레이 카드 */
.how-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

/* 푸터 */
.lobby-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
}

/* 로그인/로그아웃 버튼 */
.btn-hero {
  background: linear-gradient(135deg, #ffd166, #ff5e7e);
  color: #0a0520;
  font-weight: 900;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(255,209,102,0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,209,102,0.6); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,209,102,0.5); }
