
@charset "utf-8";

/* 공통속성 */
.tit { font-weight: 700; font-size:32px; margin-bottom:25px; display:flex; gap:5px; color:#222;}
.subtit { font-weight: 700; font-size:24px; margin-bottom:15px; color:#333;}
.desc { font-weight: 400; font-size:18px; color: #777; line-height:1.35em; }

.mb-sm { margin-bottom: 30px; }
.mb-md { margin-bottom: 50px; }
.mb-lg { margin-bottom: 80px; }

.cont{padding:80px 0;}

/* 헤더 스타일 */
.lottery-header{ background: linear-gradient(135deg, var(--dark) 0%, #3A3F6C 100%);}
.lottery-header > div { color: var(--white); /*  border-radius: 8px; */ box-shadow: 0 20px 40px rgba(45, 48, 71, 0.15); position: relative; 
	overflow: hidden; padding:80px 45px; display:flex; flex-direction:column; gap:15px;} 
.lottery-header h2 { font-size: 32px; font-weight: 600;  position: relative; z-index: 1; display:flex; gap:5px; } 
.lottery-header .user-greeting { font-size: 18px; opacity: 0.9; position: relative; z-index: 1; display:flex; gap:5px;  } 
.lottery-header .icon-large { font-size: 80px; opacity: 0.1; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 0; } 

/* 네비게이션 스타일 */
.lottery-nav { display: flex; gap: 15px; flex-wrap: wrap; } 
.lottery-nav a { padding: 15px 30px; color: var(--dark); border-radius: 8px; font-size: 16px; font-weight: 600; transition: all 0.3s ease;  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	display: flex; align-items: center; gap: 10px;} 
.lottery-nav a:hover { color: var(--primary); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } 
.lottery-nav a.active { background: var(--primary); color: white; border-color: var(--primary); } 
.lottery-nav a.active:hover { background: var(--primary-dark); transform: translateY(-3px); } 

/* 카드 스타일 */
.lottery-card { } 


/* 번호 볼 스타일 */
.number-ball { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; 
	font-size: 20px; margin: 5px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } 
.ball-white { background: linear-gradient(135deg, var(--dark) 0%, #3A3F6C 100%); color: white; } 
.ball-power { background: linear-gradient(135deg, var(--accent) 0%, #FF3366 100%); color: white; } 

/* 메뉴 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } 
.feature-card { background: white; border-radius: 15px; padding: 40px; text-align: center; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); display: flex; flex-direction:column; gap:20px; 
	align-items: center;  } 
.feature-card:hover { transform: translateY(-10px);/* border-color: var(--primary);  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15); */ box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;} 
.feature-card .feature-icon { font-size: 60px; height: 120px; width: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
	background: var(--accent-light);  color:var(--accent); } 
.feature-card:nth-child(2) .feature-icon { color: var(--primary); background:  var(--primary-light);  } 
.feature-card:nth-child(3) .feature-icon { color: var(--rank); background: var(--rank-light); } 

/*card hover시*/
.feature-card:hover .feature-icon {color:var(--accent-dark); transition: all 0.3s ease;}
.feature-card:nth-child(2):hover .feature-icon{color:var(--primary-dark);}
.feature-card:nth-child(3):hover .feature-icon{color:var(--rank-dark);}

/* 버튼 스타일 */
.feature-card .btn-lottery { padding: 16px 32px; background: var(--accent); color: white; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; 
	font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3); position:relative; z-index: 1; overflow:hidden;} 
.feature-card:nth-child(2) .btn-lottery{background: var(--primary);}
.feature-card:nth-child(3) .btn-lottery{background: var(--rank);}
.feature-card .btn-lottery:after { position: absolute; content: ""; width: 100%; height: 0; bottom: 0; right: 0; z-index: -1; background:var(--accent-dark); transition: all 0.3s ease;}
.feature-card:nth-child(2) .btn-lottery:after{background:var(--primary-dark);}
.feature-card:nth-child(3) .btn-lottery:after{background:var(--rank-dark);}

.feature-card .btn-lottery:hover:after {bottom: 0; height: 100%;}

/* .btn-lottery:hover { box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4); background: var(--primary-dark); transition: all 0.3s ease;}  */
.btn-lottery-primary { background: linear-gradient(135deg, var(--secondary) 0%, #5B86E5 100%); box-shadow: 0 4px 15px rgba(54, 209, 220, 0.3); } 
.btn-lottery-primary:hover { box-shadow: 0 8px 25px rgba(54, 209, 220, 0.4); } 
.btn-lottery-warning { background: linear-gradient(135deg, var(--warning) 0%, #FF9800 100%); box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3); } 
.btn-lottery-warning:hover { box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4); } 

/* 게임 방법 섹션 */
.game-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 30px; } 
.guide-step { background: var(--light); border-radius: 16px; padding: 30px; border-left: 5px solid var(--primary); } 
.guide-step:nth-child(2) { border-left-color: var(--secondary); } 
.guide-step:nth-child(3) { border-left-color: var(--accent); } 



/* 진행중인 게임 알림 */
.game-active-alert { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); border: none; border-radius: 20px; padding: 40px; margin-top: 40px; 
	border-left: 8px solid var(--success); } 

/* 전체 컨테이너 */
.game-select-page { max-width: 1200px; margin: 40px auto; padding: 0 20px; font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; } 

/* 페이지 헤더 */
.page-header { text-align: center; margin-bottom: 40px; } 
.page-header h1 { font-size: 32px; font-weight: 700; color: #333; margin-bottom: 15px; } 
.page-header p { font-size: 18px; color: #666; line-height: 1.6; } 

/* 네비게이션 바 */
.nav-bar { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; background: #f8f9fa; padding: 15px; border-radius: 10px; flex-wrap: wrap; } 
.nav-item { padding: 12px 25px; background: white; color: #333; text-decoration: none; border-radius: 8px; font-weight: 500; border: 1px solid #ddd; transition: all 0.3s; white-space: nowrap;} 
.nav-item:hover { background: #e9ecef; transform: translateY(-2px); } 
.nav-item.active { background: #007bff; color: white; border-color: #007bff; } 

/* 메인 카드 */
.main-card { background: white; border-radius: 15px; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); margin-bottom: 30px; } 
.main-card h2 { text-align: center; font-size: 24px; color: #333; margin-bottom: 20px; font-weight: 600; } 
.main-card .description { text-align: center; color: #666; font-size: 16px; margin-bottom: 40px; line-height: 1.6; max-width: 600px; margin-left: auto; margin-right: auto; } 

/* 게임 옵션 - 가로 배치로 수정 */
.game-options { display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap; } 
.game-option { flex: 1; min-width: 180px; max-width: 200px; } 
.game-option input[type="radio"] { display: none; } 
.game-card { background: white; border: 2px solid #e0e0e0; border-radius: 12px; padding: 30px 15px; cursor: pointer; transition: all 0.3s; height: 100%; display: flex; 
	flex-direction: column; align-items: center; text-align: center; } 
.game-card:hover { border-color: #007bff; transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,123,255,0.1); } 
.game-option input[type="radio"]:checked + .game-card { border-color: #28a745; background: #f0fff4; box-shadow: 0 8px 20px rgba(40,167,69,0.15); } 
.game-number { font-size: 48px; font-weight: 700; color: #333; margin-bottom: 10px; display: block; line-height: 1; } 
.game-option input[type="radio"]:checked + .game-card .game-number { color: #28a745; } 
.game-label { font-size: 20px; font-weight: 600; color: #333; margin-bottom: 10px; display: block; } 
.game-desc { font-size: 14px; color: #666; opacity: 0.8; line-height: 1.4; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } 

/* 버튼 그룹 */
.button-group { text-align: center; margin-top: 50px; } 
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #007bff; color: white; border: none; padding: 16px 50px; border-radius: 10px; 
	font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s; min-width: 200px; } 
.btn-primary:hover { background: #0056b3; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,123,255,0.3); color: white; } 
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: white; color: #333; border: 1px solid #ddd; padding: 14px 35px; border-radius: 10px; 
	font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.3s; margin-top: 20px; min-width: 200px; } 
.btn-secondary:hover { background: #f8f9fa; border-color: #007bff; color: #007bff; transform: translateY(-2px); } 

/* 진행중인 게임 알림 */
.active-game-alert { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 12px; padding: 25px 30px; margin-top: 30px; } 
.active-game-alert h3 { color: #856404; font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; } 
.active-game-alert p { color: #856404; margin-bottom: 15px; line-height: 1.5; } 
.alert-buttons { display: flex; gap: 15px; flex-wrap: wrap; } 
.btn-warning { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #ffc107; color: #333; border: none; padding: 12px 25px; border-radius: 8px; 
	font-weight: 500; text-decoration: none; transition: all 0.3s; min-width: 180px; } 
.btn-warning:hover { background: #e0a800; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,193,7,0.3); } 
.btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #f8f9fa; color: #333; border: 1px solid #ddd; padding: 12px 25px; border-radius: 8px; 
	font-weight: 500; text-decoration: none; transition: all 0.3s; min-width: 180px; } 
.btn-light:hover { background: #e9ecef; border-color: #007bff; color: #007bff; transform: translateY(-2px); } 

/* 반응형 */
@media (max-width: 1024px){
	/*공통속성*/
	

	.cont{padding:60px 0;}

	.game-option { min-width: 160px; }  
	.game-number { font-size: 42px; } 
	.lottery-header > div{padding:60px 35px; }
	.lottery-header .icon-large{font-size:64px;}
	.lottery-header h2 {font-size:24px; }
	.lottery-header .user-greeting{font-size:16px;}
 }


@media (max-width: 768px){
	/*공통속성*/

	.cont{padding:40px 0;}


	.lottery-header > div { padding: 45px 25px;  }  
	.lottery-header .icon-large { /*display: none;*/ font-size:48px; }  
	
	.lottery-header h2 {font-size:20px;}
	.lottery-header .user-greeting{font-size:14px;}

	.lottery-nav { flex-direction: column; align-items: stretch; }  
	.lottery-nav a { justify-content: center; padding: 15px; }  
	.feature-grid { grid-template-columns: 1fr; }  
	.game-guide { grid-template-columns: 1fr; }  
	.number-ball { width: 50px; height: 50px; font-size: 18px; } 

	.game-select-page { padding: 0 15px; margin: 20px auto; }  
	.page-header h1 { font-size: 28px; }  
	.page-header p { font-size: 16px; }  
	.nav-bar { gap: 5px; }  
	.nav-item { padding: 10px 15px; font-size: 14px; }  
	.game-options { gap: 15px; }  
	.game-option { min-width: 140px; flex: 0 0 calc(50% - 15px); }  
	.game-card { padding: 25px 10px; }  
	.game-number { font-size: 36px; }  
	.game-label { font-size: 18px; }  
	.game-desc { font-size: 13px; white-space: normal; }  
	.main-card { padding: 30px 20px; }  
	.btn-primary, .btn-secondary { min-width: 180px; padding: 14px 30px; }  
	.alert-buttons { flex-direction: column; align-items: center; }  
	.btn-warning, .btn-light { width: 100%; max-width: 300px; } 
 }


@media (max-width: 480px){
	.game-option { flex: 0 0 calc(100% - 15px); } 
	.game-number { font-size: 40px; } 
	.game-options { gap: 10px; } 
	.nav-bar { flex-direction: column; } 
 }