/* =========================================================
   🔮 프리미엄 다크 & 샴페인 골드 테마 (중앙 메인 시스템)
========================================================= */
:root {
  --bg-main: #060913;
  --bg-card: rgba(17, 24, 39, 0.85);
  --border-gold: rgba(212, 175, 55, 0.3);
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-glow: rgba(212, 175, 55, 0.4);
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(192, 132, 252, 0.08) 0%, transparent 40%);
  color: #f3f4f6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, span, button, a {
  word-break: keep-all;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   👈👉 좌우 윙 패널 전용 스타일 (검토용 화이트 카드 스타일)
========================================================= */
.wing-card {
  background: #ffffff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}
.wing-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 14px 32px -5px rgba(15, 23, 42, 0.12);
}
.wing-inner-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  transition: all 0.2s ease;
}
.wing-inner-card:hover {
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.wing-ad-slot {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  border-radius: 0.875rem;
}

/* =========================================================
   🛒 쿠팡 파트너스 고전환율(High-CTR) 골드빛 샤인(Gold Shimmer) 스타일
========================================================= */
.coupang-card {
  background: #ffffff;
  border: 1.5px solid #fdba74;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.12), 0 4px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* ✨ 3.5초마다 카드를 스르륵 훑고 지나가는 럭셔리 골드 샤인 빛줄기 */
.coupang-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 10%,
    rgba(254, 240, 138, 0.55) 50%,
    rgba(251, 146, 60, 0.4) 65%,
    rgba(255, 255, 255, 0) 90%
  );
  transform: rotate(25deg);
  animation: coupangGoldSweep 3.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes coupangGoldSweep {
  0% { left: -80%; opacity: 0; }
  12% { opacity: 0.9; }
  35% { left: 140%; opacity: 0.9; }
  36%, 100% { left: 140%; opacity: 0; }
}

.coupang-card:hover {
  border-color: #f97316;
  box-shadow: 0 14px 30px -5px rgba(249, 115, 22, 0.22);
}
.coupang-item-btn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.875rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.coupang-item-btn:hover {
  background: #ffedd5;
  border-color: #fb923c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18);
}

/* =========================================================
   🌟 첫 접속 인트로 스플래시 랜딩
========================================================= */
#intro-splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(15, 23, 42, 0.98) 0%, #030712 100%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  backdrop-filter: blur(20px);
  cursor: pointer;
}

#intro-splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   🔮 45구 천기 공 투입 버튼 줄바꿈 방지
========================================================= */
.ceremony-drop-btn,
.ceremony-drop-btn * {
  white-space: nowrap !important;
}

/* =========================================================
   🕹️ 모드 선택 버튼 그룹 (최대 3회 자유 선택)
========================================================= */
.mode-select-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 0.875rem;
  padding: 0.6rem 0.5rem;
  color: #94a3b8;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.mode-select-btn:hover:not(:disabled) {
  border-color: rgba(212, 175, 55, 0.5);
  color: #fef08a;
  transform: translateY(-1px);
}
.mode-select-btn.active-mode {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: #d4af37;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}
.mode-select-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* =========================================================
   3D 투명 지구볼 추첨기 (Cosmic Globe Machine)
========================================================= */
.globe-stage {
  perspective: 1000px;
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  touch-action: none;
}

@media (min-width: 640px) {
  .globe-stage {
    width: 320px;
    height: 320px;
  }
}

.globe-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.75) 80%, rgba(212, 175, 55, 0.25) 100%);
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow: 
    inset 0 0 30px rgba(255, 255, 255, 0.15),
    inset -10px -10px 40px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(212, 175, 55, 0.3),
    0 0 80px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  cursor: grab;
}
.globe-sphere:active {
  cursor: grabbing;
}

.globe-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.globe-ring-1 { width: 90%; height: 90%; transform: translate(-50%, -50%) rotateX(65deg); }
.globe-ring-2 { width: 90%; height: 90%; transform: translate(-50%, -50%) rotateY(65deg); }
.globe-ring-3 { width: 96%; height: 96%; border-color: rgba(56, 189, 248, 0.25); }

.globe-stand {
  width: 140px;
  height: 28px;
  margin: -14px auto 0;
  background: linear-gradient(180deg, #d4af37 0%, #785c15 100%);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.5);
  border: 1px solid rgba(255, 235, 150, 0.6);
  position: relative;
  z-index: 10;
}

.air-jet {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 80px;
  background: radial-gradient(ellipse at bottom, rgba(56, 189, 248, 0.45) 0%, transparent 80%);
  pointer-events: none;
}

/* =========================================================
   🔮 지구볼 내부 3D 홀로그램 워터마크 로고
========================================================= */
.globe-watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 135px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
  animation: watermarkFloat 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.45));
}
@keyframes watermarkFloat {
  0% { transform: translate(-50%, -50%) scale(0.96) rotate(-2deg); }
  100% { transform: translate(-50%, -50%) scale(1.04) rotate(2deg); }
}

/* =========================================================
   👑 5대 동양철학 엠블럼(사주·음양·오행·혈액형·MBTI) 둥둥 부유 모션
========================================================= */
.floating-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.floating-emblem:hover {
  transform: scale(1.2) translateY(-4px) !important;
  filter: brightness(1.25) drop-shadow(0 0 16px rgba(250, 204, 21, 0.7));
}
.floating-delay-1 { animation: emblemFloat1 2.8s ease-in-out infinite alternate; }
.floating-delay-2 { animation: emblemFloat2 3.4s ease-in-out infinite alternate; }
.floating-delay-3 { animation: emblemFloat3 2.6s ease-in-out infinite alternate; }
.floating-delay-4 { animation: emblemFloat4 3.2s ease-in-out infinite alternate; }
.floating-delay-5 { animation: emblemFloat5 3.0s ease-in-out infinite alternate; }

@keyframes emblemFloat1 {
  0% { transform: translateY(0px) rotate(-3deg); }
  100% { transform: translateY(-7px) rotate(3deg); }
}
@keyframes emblemFloat2 {
  0% { transform: translateY(-5px) rotate(2deg); }
  100% { transform: translateY(2px) rotate(-2deg); }
}
@keyframes emblemFloat3 {
  0% { transform: translateY(0px) scale(1.1); }
  100% { transform: translateY(-8px) scale(1.15); }
}
@keyframes emblemFloat4 {
  0% { transform: translateY(-6px) rotate(-2deg); }
  100% { transform: translateY(1px) rotate(2deg); }
}
@keyframes emblemFloat5 {
  0% { transform: translateY(0px) rotate(3deg); }
  100% { transform: translateY(-6px) rotate(-3deg); }
}

.chute-pipe {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 35px;
  background: linear-gradient(90deg, #785c15, #d4af37, #fef08a, #785c15);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 15px rgba(212, 175, 55, 0.6);
  z-index: 15;
}

@keyframes spinFingerOrbit {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(45px) rotate(0deg); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) rotate(180deg) translateX(45px) rotate(-180deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(45px) rotate(-360deg); opacity: 0.9; }
}

@keyframes spinRingGlow {
  0% { transform: translate(-50%, -50%) rotate(0deg); border-color: rgba(56, 189, 248, 0.4); }
  50% { transform: translate(-50%, -50%) rotate(180deg); border-color: rgba(250, 204, 21, 0.8); }
  100% { transform: translate(-50%, -50%) rotate(360deg); border-color: rgba(56, 189, 248, 0.4); }
}

.finger-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2.5px dashed #38bdf8;
  pointer-events: none;
  animation: spinRingGlow 2.5s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.finger-guide::before {
  content: '⟲ 좌 / 우 ⟳';
  position: absolute;
  top: -24px;
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.finger-guide::after {
  content: '👆';
  font-size: 26px;
  position: absolute;
  top: 50%;
  left: 50%;
  animation: spinFingerOrbit 2s linear infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.swap-target-chip {
  background: #090e1a;
  color: #94a3b8;
  border: 1.5px solid #334155;
  font-weight: 700;
  cursor: pointer;
}
.swap-target-chip.active {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #020617;
  border-color: #fef08a;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  transform: scale(1.03);
}

/* =========================================================
   번호 드롭 & 배출 스팟라이트 애니메이션
========================================================= */
@keyframes dropAndPop {
  0% {
    opacity: 0;
    transform: translateY(-80px) scale(0.2) rotate(-360deg);
  }
  60% {
    opacity: 1;
    transform: translateY(12px) scale(1.25) rotate(15deg);
  }
  80% {
    transform: translateY(-6px) scale(0.95) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

.ball-drop-anim {
  animation: dropAndPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* =========================================================
   로또 공식 볼 디자인
========================================================= */
/* =========================================================
   로또 공식 볼 디자인
========================================================= */
.lotto-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #ffffff;
  position: relative;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.5), 0 6px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* 📋 완성세트 6개 볼 전용 스마트 풀-반응형 그리드 (어떤 스마트폰이든 좌우폭에 1:1 완벽 핏) */
.completed-balls-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 360px;
  align-items: center;
  padding: 4px 0;
}

@media (min-width: 640px) {
  .completed-balls-grid {
    max-width: 400px;
    gap: 8px;
  }
}

.lotto-ball-completed {
  width: 100%;
  max-width: 54px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.95rem, 4vw, 1.3rem);
  font-weight: 900;
  color: #ffffff;
  position: relative;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.5), 0 5px 12px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}
.lotto-ball-completed .elem-badge {
  font-size: clamp(0.52rem, 2.2vw, 0.72rem);
  margin-top: -2px;
}

.lotto-ball-big {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
  box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 175, 55, 0.4);
}
.lotto-ball-big .elem-badge {
  font-size: 0.65rem;
  margin-top: -2px;
}

@media (min-width: 640px) {
  .lotto-ball-big {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.5);
  }
  .lotto-ball-big .elem-badge {
    font-size: 0.75rem;
    margin-top: -4px;
  }
}

.lotto-ball-sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

/* =========================================================
   ⚖️ 공 빼기 1~45번 10구 1줄 번호판 스마트 풀-반응형 (좌우 1번·10번 잘림 100% 방지)
========================================================= */
.swap-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2.5px;
  margin: 1.5px 0;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

.swap-row-last {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 1.5px 0;
  width: 100%;
}
.swap-row-last .swap-ball-btn {
  width: clamp(24px, calc((100% - 25px) / 10), 34px);
  max-width: 34px;
}

.swap-ball-btn {
  width: 100%;
  max-width: 34px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(9.5px, 2.7vw, 13px);
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  position: relative;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, filter 0.2s ease;
  margin: 0 auto;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 480px) {
  .swap-row {
    gap: 4px;
    margin: 2.5px 0;
  }
  .swap-row-last {
    gap: 6px;
  }
}

@media (min-width: 640px) {
  .swap-row {
    gap: 6px;
    margin: 3px 0;
  }
  .swap-row-last {
    gap: 8px;
  }
}

.elem-badge {
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  margin-top: -3px;
  opacity: 0.95;
}

.ball-range-1 {
  background: radial-gradient(circle at 35% 30%, #facc15 0%, #ca8a04 70%, #854d0e 100%);
  color: #1f2937;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}
.ball-range-1 .elem-badge { color: #451a03; }

.ball-range-11 {
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 70%, #0369a1 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ball-range-21 {
  background: radial-gradient(circle at 35% 30%, #f87171 0%, #dc2626 70%, #991b1b 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ball-range-31 {
  background: radial-gradient(circle at 35% 30%, #9ca3af 0%, #4b5563 70%, #1f2937 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.ball-range-41 {
  background: radial-gradient(circle at 35% 30%, #4ade80 0%, #16a34a 70%, #166534 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   8·9·10회차 인터랙티브 컨트롤 패널
========================================================= */
.charging-btn {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid;
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.charging-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.rune-ball {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.rune-ball:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}
.rune-ball.used {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}

/* =========================================================
   버튼 및 탭 스타일
========================================================= */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #fef08a 50%, #b89628 100%);
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}
.btn-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* =========================================================
   추첨 모드 선택 버튼 (자동 vs 나만의 기운 주입 4종 시각 분리)
========================================================= */
.mode-select-btn {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 0.6rem 0.4rem;
  color: #94a3b8;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.mode-select-btn:hover {
  border-color: #64748b;
  color: #ffffff;
}

/* 자동 추첨 버튼 (단정하고 깔끔한 다크 메탈 스타일) */
.mode-btn-auto {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #475569;
}
.mode-btn-auto.active-mode {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border: 2px solid #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* 나만의 기운 주입 4종 버튼 (화려한 골드 & 룬 스타일) */
.mode-btn-interactive {
  background: linear-gradient(180deg, #1f1d2b 0%, #0f172a 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.mode-btn-interactive:hover {
  border-color: #eab308;
}
.mode-btn-interactive.active-mode {
  background: linear-gradient(180deg, #382c12 0%, #171206 100%);
  border: 2px solid #eab308;
  color: #fef08a;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.45);
}

/* =========================================================
   🎰 천명(天命) 황금 룰렛 (Fortune Wheel) 스타일
========================================================= */
.roulette-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
/* =========================================================
   ⚖️ 공 교체 & 복수 투입 (Ball Swap & Multiply) 완벽 원형 로또볼
========================================================= */
.swap-row-balls {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
  margin: 3px 0 !important;
}

/* 절대 찌그러지지 않는 완벽한 원형 미니 로또볼 */
.swap-mini-lotto-ball {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  box-shadow: inset -2px -3px 4px rgba(0,0,0,0.5), 0 3px 6px rgba(0,0,0,0.4) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

@media (max-width: 420px) {
  .swap-row-balls {
    gap: 3px !important;
  }
  .swap-mini-lotto-ball {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    font-size: 11px !important;
  }
}

.swap-mini-lotto-ball:hover {
  transform: scale(1.2) translateY(-2px) !important;
  z-index: 10 !important;
}
.swap-mini-lotto-ball:active {
  transform: scale(0.92) !important;
}

/* 제외된 공 */
.swap-mini-lotto-ball.swap-ball-excluded {
  background: radial-gradient(circle at 35% 35%, #450a0a 0%, #1c0303 100%) !important;
  color: #ef4444 !important;
  border: 1.5px solid #ef4444 !important;
  opacity: 0.55 !important;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8) !important;
}
.swap-mini-lotto-ball.swap-ball-excluded::after {
  content: '✕';
  position: absolute;
  top: -3px;
  right: -3px;
  background: #dc2626;
  color: white;
  font-size: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* 복수 투입된 공 */
.swap-mini-lotto-ball.swap-ball-added {
  box-shadow: 0 0 14px #facc15, inset -2px -3px 4px rgba(0,0,0,0.4), inset 2px 2px 4px rgba(255,255,255,0.7) !important;
  border: 2px solid #ffffff !important;
  transform: scale(1.1) !important;
}
.swap-mini-lotto-ball .swap-ball-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #0284c7;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 8px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
  animation: popIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* =========================================================
   🌟 랜딩 페이지 5대 원형 3D 로또 볼 버튼 (실물 3D 구체 공 완벽 구현)
========================================================= */
.landing-ball-sphere {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  user-select: none !important;
  position: relative !important;
  box-shadow: inset -5px -6px 10px rgba(0, 0, 0, 0.7), inset 4px 4px 8px rgba(255, 255, 255, 0.65), 0 8px 20px rgba(0, 0, 0, 0.7) !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.landing-ball-sphere::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 10px;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transform: rotate(-25deg);
}

.landing-ball-sphere:hover {
  transform: translateY(-5px) scale(1.12) !important;
  box-shadow: inset -5px -6px 10px rgba(0, 0, 0, 0.7), inset 4px 4px 8px rgba(255, 255, 255, 0.85), 0 14px 28px rgba(234, 179, 8, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

.landing-ball-sphere:active {
  transform: scale(0.92) !important;
}

@media (min-width: 640px) {
  .landing-ball-sphere {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
  }
  .landing-ball-sphere::before {
    top: 8px;
    left: 12px;
    width: 18px;
    height: 10px;
  }
}

/* =========================================================
   👑 랜딩 상단 투명 엠블럼 부유 모션
========================================================= */
.landing-floating-logo {
  animation: logoFloat 3.2s ease-in-out infinite alternate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@keyframes logoFloat {
  0% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.35));
  }
  100% {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 12px 28px rgba(234, 179, 8, 0.6));
  }
}

/* =========================================================
   ✨ 랜딩 하단 공 투입 안내 배너 모션 효과
========================================================= */
.landing-guide-banner {
  animation: guidePulse 2.2s ease-in-out infinite alternate;
}
@keyframes guidePulse {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.25), inset 0 0 8px rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.4);
  }
  100% {
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.55), inset 0 0 14px rgba(234, 179, 8, 0.25);
    border-color: rgba(250, 204, 21, 0.85);
  }
}

/* =========================================================
   📱 모바일 맞춤 정보 설정 모달 인풋 완벽 핏 (넘침 방지)
========================================================= */
#user-profile-modal input[type="date"],
#user-profile-modal input[type="time"] {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  color-scheme: dark;
}
#user-profile-modal input[type="date"]::-webkit-calendar-picker-indicator,
#user-profile-modal input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) brightness(1.2);
  cursor: pointer;
  padding: 0;
  margin: 0;
}
