.top-bar {
  width: 100%;
  background: #111111;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #1624b2, #c3202f);
  border-image-slice: 1;
  padding: 10px 0;  
}

.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 9px;
  font-family:'kbl';
  font-weight: 300;
  white-space: nowrap;
  flex-shrink: 0;
  color: #ffffff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ff3333;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.8);
}

/*api 로또 볼*/
/* 로또 공통 스타일 */
.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family:'Orbitron';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2), 2px 2px 5px rgba(0,0,0,0.1);
}

/* 색상 규칙: 동행복권 표준 */
.ball-yellow { background: linear-gradient(135deg, #fbc400, #ff9d00); } /* 1-10 */
.ball-blue   { background: linear-gradient(135deg, #69c8f2, #2196f3); } /* 11-20 */
.ball-red    { background: linear-gradient(135deg, #ff7272, #f44336); } /* 21-30 */
.ball-gray   { background: linear-gradient(135deg, #aaaaaa, #757575); } /* 31-40 */
.ball-green  { background: linear-gradient(135deg, #b0d840, #4caf50); } /* 41-45 */

.bonus-plus {
    margin: 0 8px;
    font-weight: bold;
    color: #888;
}

/* 배너를 감싸는 컨테이너: top-bar-container와 너비를 맞춰서 정렬 유지 */
.stats-info-banner-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end; /* 우측 정렬 */
    position: relative;
}

.stats-info-banner {
    /* 디자인 요소 */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none; /* top-bar의 보더와 겹치지 않게 상단 제거 */
    
    padding: 6px 15px;
    border-radius: 0 0 8px 8px; /* 아래쪽만 둥글게 */
    
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    white-space: nowrap;
    
    /* 위치 미세 조정 */
    margin-top: 0px; /* top-bar의 border-bottom에 딱 붙이기 위해 살짝 올림 */
    z-index: 5;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .stats-info-banner-wrapper {
        justify-content: center; /* 모바일은 중앙 정렬 */
    }
    
    .stats-info-banner {
        font-size: 10px;
        margin-top: 5px; /* 모바일은 가독성을 위해 살짝 띄움 */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
}


@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.stats-list {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: flex-end; 
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.stat-item .label {
  color: rgba(255, 255, 255, 0.6);
}

.stat-item .value {
  color: #ffffff;
  font-weight: 600;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .stats-list {
    gap: 20px;
  }
  
  .stat-item {
    font-size: 12px;
  }
}

/* 반응형 - 모바일 (롤링 시작) */
@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .logo {
    font-size: 12px;
  }
  
  /* 롤링 컨테이너 */
  .stats-list {
    width: 100%;
    overflow: hidden;
    position: relative;
    gap: 30px;
  }
  
  /* 롤링 애니메이션 */
  .stats-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, #0a0a1a, transparent);
    z-index: 1;
  }
  
  .stats-list::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, #0a0a1a, transparent);
    z-index: 1;
  }
  
  .stats-list {
    animation: scroll-mobile 20s linear infinite;
  }
  
  .stat-item {
    font-size: 11px;
    flex-shrink: 0;
  }


}

@keyframes scroll-mobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.stats-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 데스크톱에서는 wrapper 영향 없음 */
@media (min-width: 769px) {
  .stats-wrapper {
    overflow: visible;
  }
}

/* 모바일에서만 롤링 */
@media (max-width: 768px) {
  .stats-list {
    display: flex;
    width: fit-content;
    animation: scroll-mobile 25s linear infinite;
  }
  
  /* 호버시 멈춤 (선택사항) */
  .stats-wrapper:hover .stats-list {
    animation-play-state: paused;
  }
}


/* 배경 설정 */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  /* top: 50%; transform: translateY(-50%); 제거 */
  border-radius: 50%;
}

/* 좌측 파란 빛 - 3개 레이어 */
.bg-glow-left {
  top: 50%;
  transform: translateY(-50%);
  left: -400px;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  filter: blur(250px);
  background: 
    radial-gradient(circle at center, rgba(75, 32, 195, 0.4) 0%, transparent 50%),
    radial-gradient(circle at center, rgba(100, 100, 255, 0.3) 0%, transparent 60%),
    radial-gradient(circle at center, rgba(130, 130, 255, 0.2) 0%, transparent 70%);
  animation: subtle-pulse-smooth 12s ease-in-out infinite;
  opacity: 0.6;
}

/* 우측 붉은 빛 - 3개 레이어 */
.bg-glow-right {
  top: 50%;
  transform: translateY(-50%);
  right: -400px;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  filter: blur(250px);
  background: 
    radial-gradient(circle at center, rgba(255, 77, 77, 0.4) 0%, transparent 50%),
    radial-gradient(circle at center, rgba(255, 100, 100, 0.3) 0%, transparent 60%),
    radial-gradient(circle at center, rgba(255, 130, 130, 0.2) 0%, transparent 70%);
  animation: subtle-pulse-smooth 12s ease-in-out infinite 4s;
  opacity: 0.6;
}

.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at top,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

/* 좌측 레이어들 - 위쪽 배치 */
.bg-glow-left-1 {
  top: -200px;
  left: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(100, 120, 255, 0.7) 0%, transparent 70%);
  filter: blur(150px);
  animation: pulse-layer-1 10s ease-in-out infinite;
}

.bg-glow-left-2 {
  top: -300px;
  left: -400px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(120, 140, 255, 0.5) 0%, transparent 70%);
  filter: blur(200px);
  animation: pulse-layer-2 12s ease-in-out infinite;
}

.bg-glow-left-3 {
  top: -400px;
  left: -500px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(140, 160, 255, 0.4) 0%, transparent 70%);
  filter: blur(250px);
  animation: pulse-layer-3 14s ease-in-out infinite;
}

.bg-glow-left-1 {
  background: radial-gradient(circle, rgba(120, 150, 255, 0.9) 0%, rgba(80, 100, 255, 0.9) 40%, transparent 90%);
  filter: blur(60px); 
}

.bg-glow-left-2 {
  background: radial-gradient(circle, rgba(100, 130, 255, 0.9) 0%, transparent 90%);
  filter: blur(180px);
}

.bg-glow-left-3 {
  background: radial-gradient(circle, rgba(80, 110, 255, 0.9) 0%, transparent 90%);
  filter: blur(220px);
}

/* 우측 레이어들 - 위쪽 배치 */
.bg-glow-right-1 {
  top: -200px;
  right: -500px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.5) 0%, transparent 70%);
  filter: blur(150px);
  animation: pulse-layer-1 10s ease-in-out infinite 3s;
}

.bg-glow-right-2 {
  top: -300px;
  right: -500px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 100, 100, 0.3) 0%, transparent 70%);
  filter: blur(200px);
  animation: pulse-layer-2 12s ease-in-out infinite 4s;
}

.bg-glow-right-3 {
  top: -400px;
  right: -500px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 130, 130, 0.2) 0%, transparent 70%);
  filter: blur(250px);
  animation: pulse-layer-3 14s ease-in-out infinite 5s;
}

@keyframes pulse-layer-1 {
  0%, 100% {
    opacity: 0.5; 
    transform: scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes pulse-layer-2 {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@keyframes pulse-layer-3 {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

/* 매우 부드러운 애니메이션 */
@keyframes subtle-pulse-smooth {
  0%, 100% {
    opacity: 0.4;
    transform: translateY(-50%) scale(0.95);
    filter: blur(250px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.15);
    filter: blur(280px);
  }
}

/* 컨텐츠가 배경 위에 오도록 */
.top-bar,
.main-content {
  position: relative;
  z-index: 1;
}

/* 복제본 표시 제어 - 최우선 */
.stat-item.mobile-clone {
  display: none;
}

@media (max-width: 768px) {
  .stat-item.mobile-clone {
    display: flex;
  }
}


/* 메인 컨테이너 */
.main-container {
  min-height: calc(100vh - 100px); /* 상단바, 하단바 제외 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.main-content {
  max-width: 1400px;  
  width: 100%;
  padding-bottom:80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 타이틀 섹션 */
.title-section {
  margin-bottom: 20px;
}

.subtitle {
  font-family: 'Pretendard', sans-serif; 
  font-size: 25px;  
  letter-spacing: 1px;
  font-weight:700;
  margin-bottom: 0px;
  background: linear-gradient(to right, #1624b2, #c3202f);  
  -webkit-background-clip: text;
  background-clip: text;    
  color: transparent;      
  display: inline-block;
}

.main-title {
  font-family: 'kbl', sans-serif; 
  font-size: 72px;
  line-height:90px;    
  letter-spacing: 3px;
  color:#fff;

}

.description {
  font-size: 20px;
  font-family: 'Pretendard', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* 버튼 섹션 */
.button-section {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-bottom:30px;
}

.main-button {
    width: 350px;
    height: auto;
    cursor: pointer;
    position: relative;
    /* 부드러운 팝업 애니메이션 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    /* 버튼 자체는 깔끔하게 유지하기 위해 overflow를 쓰지 않아도 됨 */
}

/* 네온 광원 레이어 (버튼 뒤에 배치) */
.main-button::before {
    content: "";
    position: absolute;
    /* 버튼 영역보다 약간 크게 설정해서 빛이 밖으로 퍼지게 함 */
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, #1624b2, #ff3333, #1624b2);
    background-size: 400%;
    z-index: -1;
    /* 빛이 퍼지는 정도 조절 (수치가 높을수록 더 넓게 퍼짐) */
    filter: blur(9px); 
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 10px;
}

.main-button img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(1);
    /* 이미지 모서리 둥글게 */
    border-radius: 10px;
}

/* 호버 시 전체적인 변화 */
.main-button:hover {
    transform: translateY(-10px); /* 위로 슥 올라가는 효과 */
}

/* 호버 시 네온 켜짐 + 움직임 */
.main-button:hover::before {
    opacity: 0.7; /* 빛의 세기 조절 */
    animation: neon-flow 3s linear infinite;
}

/* 호버 시 이미지 밝기 살짝 업 */
.main-button:hover img {
    filter: brightness(1.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6); /* 버튼 자체 그림자도 강화 */
}

/* 네온 빛이 흐르는 애니메이션 */
@keyframes neon-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-button img {
  width: 100%;
  height: 100%;  
  display: block;
}

/* 1. 버튼 본체 수정 */
.full-width-button {
    width: 100%;
    /* 기존 이미지 버튼 두 개 합친 너비에 가깝게 조정 */
    max-width: 730px; 
    min-height: 100px; /* 높이를 고정하지 않고 최소 높이만 지정 */
    
    background: linear-gradient(to right, #1624b2, #c3202f);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: flex-start;
    
    cursor: pointer;
    margin: 0 auto 30px auto;
    padding: 20px 40px; /* 좌우 여백 확보 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    /* 배경 이미지 설정 */
    background-image: url('../images/sub_bn_bg.png');
    background-repeat: no-repeat;
    background-position: right right; /* 위치를 오른쪽 끝으로 */
    background-size: cover; /* 이미지가 잘리지 않게 조정 */
    
    /* ⭐ 기존 버튼과 똑같은 쫀득한 팝업 효과 추가 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden; /* 배경 이미지가 삐져나가지 않게 */
}

/* 2. 호버 효과 (기존 버튼과 동일하게) */
.full-width-button:hover {
    transform: translateY(-10px); /* 슥 올라가는 효과 */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    filter: brightness(1.1);
}

/* 3. 내부 텍스트 스타일 조정 */
.blog_category { 
    display: inline-block; /* 너비에 맞게 줄어들도록 */
    border-radius: 50px; 
    color: #00ff88; 
    border: 1px solid #00ff88; 
    padding: 2px 10px; 
    font-size: 10px; 
    font-family: 'Pretendard';
    margin-bottom: 8px;
    width: fit-content; /* 글자 길이에 딱 맞게 */
}

.blog_title { 
    font-family: 'kbl';
    color: #fff;  
    font-size: 1.8rem; /* 모바일 대응을 위해 살짝 줄임 */
    line-height: 1.2;
    white-space: nowrap; /* 글자가 밑으로 떨어지지 않게 강제 한 줄 */
}

/* 4. 모바일 대응 (반응형) */
@media (max-width: 768px) {
    .full-width-button {
        max-width: 100%; /* 모바일에서는 꽉 차게 */
        padding: 15px 25px;
        background-size: cover; /* 배경 이미지를 작게 조절 */
    }
    .blog_title {
        font-size: 1.4rem; /* 모바일에서 글자가 깨지지 않게 크기 조절 */
    }
}


/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .main-title {
    font-size: 56px;
  }
  
  .button-section {
    gap: 20px;
  }
  
  .main-button {
    width: 300px;
    height: auto;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .main-container {
    padding: 40px 20px;
  }
  
  .title-section {
    margin-bottom: 40px;
  }
  
  .subtitle {
    font-size: 16px;
    letter-spacing: 1px;
  }  
  
  .description {
    font-size: 14px;
  }
  
  /* 버튼을 세로로 배치 */
  .button-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .main-button {
    width: 100%;
    max-width: 350px;
    height: auto; 
    margin: 0 auto; 
  }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
  .main-title {
    font-size: 42px;
  }
  
  .main-button {
    height: auto;
  }
}


/* 하단 바 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #000000 0%, #0a0a1a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  z-index: 10;
}

.bottom-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 11px;
}

.footer-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-stats {
  display: flex;
  gap: 30px;
  align-items: center;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.footer-stat .label {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.footer-stat .value {
  color: #00ff88;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: pulse-text 3s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .footer-links {
    gap: 15px;
  }
  
  .footer-link,
  .footer-stat {
    font-size: 10px;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .bottom-bar-container {
    flex-direction: column;
    gap: 5px;
    padding: 5px 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .footer-link,
  .footer-stat {
    font-size: 9px;
  }
  
  .footer-stat {
    gap: 6px;
  }
}

/* body에 패딩 추가 (하단바 공간 확보) */
body {
  padding-bottom: 45px;
}

.blue_c { color:#1624b2; }
.red_c { color:#c3202f; }

/* 반응형 - 작은 모바일 */
@media (max-width: 360px) {
 .main-title { line-height: 50px;}
}