@import url('https://hangeul.pstatic.net/hangeul_static/css/nanum-square-neo.css');



@font-face {
    font-family: 'NanumSquare';
    src: url('../font/NanumSquareL.woff2') format('woff2'),
        /* 최신 브라우저 */
        url('../font/NanumSquareL.woff') format('woff');
    /* 구형 브라우저 */
    font-weight: 300;
    /* Light */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSquare';
    src: url('../font/NanumSquareR.woff2') format('woff2'),
        url('../font/NanumSquareR.woff') format('woff');
    font-weight: 400;
    /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSquare';
    src: url('../font/NanumSquareB.woff2') format('woff2'),
        url('../font/NanumSquareB.woff') format('woff');
    font-weight: 700;
    /* Bold */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NanumSquare';
    src: url('../font/NanumSquareEB.woff2') format('woff2'),
        url('../font/NanumSquareEB.woff') format('woff');
    font-weight: 800;
    /* ExtraBold */
    font-style: normal;
    font-display: swap;
}



/* 스크롤바 커스텀 */
@media screen and (min-width: 1024px) {
  *::-webkit-scrollbar {
      width: 8px;
      height: 8px;
  }

  *::-webkit-scrollbar-thumb {
      background-color: #CCCCCC;
      border-radius: 4px;
      /* border-radius: 10px; */
      background-clip: padding-box;
      border: 2px solid transparent;
  }

  *::-webkit-scrollbar-track {
      background-color: #F4F4F4;
      border-radius: 10px;
      box-shadow: inset 0px 0px 5px white;
  }
}




/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'NanumSquare', Arial, sans-serif;
    word-break: keep-all;
    font-smooth: always;
    /* macOS용 */
    -webkit-font-smoothing: antialiased;
    /* Webkit 기반 브라우저 (Chrome, Safari) */
    -moz-osx-font-smoothing: grayscale;
    /* Firefox용 */
}



body {
    background: transparent linear-gradient(120deg, #FFC43F 0%, #FEAD2A 100%) 0% 0% no-repeat padding-box;
    margin: 0;
    overflow: hidden; /* 스크롤은 Swiper 내부에서 관리 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100vh;
}
@supports (height: 100dvh) {
    body {
        height: 100dvh;
    }
}










/* Input_text Setting START */
input[type="text"],
input[type="password"], 
input[type="number"] {
  padding: 2px 8px;
  height: 28px;
  border: 1px solid #EAECF1;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1em;
  color: #222222;
  transition: all 0.3s ease-in-out;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder, 
input[type="number"]::placeholder {
  color: #B7B7B7;
}

input[type="text"]:-moz-placeholder,
input[type="password"]:-moz-placeholder, 
input[type="number"]:-moz-placeholder {
  color: #B7B7B7;
}

input[type="text"]::-ms-input-placeholder,
input[type="password"]::-ms-input-placeholder, 
input[type="number"]::-ms-input-placeholder {
  color: #B7B7B7;
}

input[type="text"]:hover:not([disabled]):not([readonly]):not(:focus):not(:active),
input[type="password"]:hover:not([disabled]):not([readonly]):not(:focus):not(:active), 
input[type="number"]:hover:not([disabled]):not([readonly]):not(:focus):not(:active) {
  border-color: #A7B1E7;
  outline: none;
}

input[type="text"]:focus:not([disabled]):not([readonly]),
input[type="password"]:focus:not([disabled]):not([readonly]),
input[type="number"]:focus:not([disabled]):not([readonly]), 
input[type="text"]:focus-visible:not([disabled]):not([readonly]),
input[type="password"]:focus-visible:not([disabled]):not([readonly]), 
input[type="number"]:focus-visible:not([disabled]):not([readonly]) {
  border-color: #5067DC;
  outline: none;
}

input[type="text"]:active:not([disabled]):not([readonly]),
input[type="password"]:active:not([disabled]):not([readonly]), 
input[type="number"]:active:not([disabled]):not([readonly]) {
  border-color: #5067DC;
  outline: none;
}

input[type="text"][disabled],
input[type="password"][disabled], 
input[type="number"][disabled], 
input[type="text"][readonly],
input[type="password"][readonly], 
input[type="number"][readonly] {
  cursor: default;
  background-color: #F5F5F5;
}

input[type="text"][readonly],
input[type="password"][readonly], 
input[type="number"][readonly], 
input[type="text"][readonly],
input[type="password"][readonly], 
input[type="number"][readonly] {
  border-color: #D4D9E2;
  background-color: #FFFFFF;
  outline: none;
}
/* Input_text Setting END */



/* Textarea Setting START */
textarea {
  padding: 6px 8px;
  min-height: 28px;
  max-width: 100%;
  min-width: 30px;
  border: 1px solid #D4D9E2;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3em;
  color: #222222;
  transition: border 0.3s ease-in-out;
}

textarea::placeholder {
  color: #B7B7B7;
}

textarea:-moz-placeholder {
  color: #B7B7B7;
}

textarea::-ms-input-placeholder {
  color: #B7B7B7;
}

textarea:hover:not([disabled]):not([readonly]):not(:focus):not(:active) {
  border-color: #A7B1E7;
  outline: none;
}

textarea:focus-visible:not([disabled]):not([readonly]) {
  border-color: #5067DC;
  outline: none;
}

textarea:active:not([disabled]):not([readonly]) {
  border-color: #5067DC;
  outline: none;
}

textarea[readonly] {
  cursor: default;
  background-color: #FFFFFF;
}

textarea[readonly]:focus-visible {
  border-color: #D4D9E2;
  background-color: #FFFFFF;
  outline: none;
}

.bs_tcount {
  height: auto;
}

.bs_tcount textarea {
  padding-bottom: 40px;
  resize: none;
}

.bs_tcount_count {
  padding: 3px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1em;
  color: #878787;
  text-align: right;
}

/* Textarea Setting END */



/* Select Setting START */
select {
  padding: 2px 8px;
  padding-right: 30px;
  height: 28px;
  border: 1px solid #D4D9E2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1em;
  color: #222222;
  transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out;

  /* 화살표 없애기 */
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;

  /* 화살표 아이콘 추가 */
  background-image: url('../img/icon_06_arrow_down.svg');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 30px;
}
select.select_open {
  background-image: url('../img/icon_05_arrow_up.svg');
}

select::placeholder {
  color: #B7B7B7;
}

select[type="text"]:-moz-placeholder {
  color: #B7B7B7;
}

select::-ms-input-placeholder {
  color: #B7B7B7;
}

select:hover:not([disabled]):not([readonly]):not(:focus):not(:active) {
  border-color: #A7B1E7;
  outline: none;
}

select:focus:not([disabled]):not([readonly]) {
  border-color: #5067DC;
  outline: none;
}

select:active:not([disabled]):not([readonly]) {
  border-color: #5067DC;
  outline: none;
}

select[disabled] {
  cursor: default;
  background-color: #F5F5F5;
}

select[readonly] {
  border-color: #D4D9E2;
  background-color: #FFFFFF;
  outline: none;
}

option {
  color: #222222;
}
/* Select Setting END */










.header {
    padding: 25px calc((100% - 1000px) / 2);
    width: 100%;
    height: auto;
    flex: auto 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.header 
img {
    width: 58px;
    height: auto;
}
.header_title {
    flex: auto 0 0;
}
.header_title_text {
    padding-bottom: 10px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1em;
    color: #FFFFFF;
}
.header_title_sub {
    font-size: 15px;
    font-weight: 300;
    line-height: 1em;
    color: #D87300;
}





.menu {
    padding: 0 calc((100% - 1000px) / 2);
    padding-top: 10px;
    width: 100%;
    height: 56px;
    background: none;
    flex: auto 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 100;
}

.menu_bt {
    /* border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    width: 25%; */
    padding: 0 5px;
    padding-right: 10px;
    border-radius: 23px;
    height: 40px;
    font-size: 18px;
    line-height: 1em;

    background-color: rgba(248, 144, 23, 0.0);
    border: 1px solid #F89017;
    color: #FFE2AD;
    font-weight: 400;
    
    transition: all 0.3s ease-in-out;
    overflow: visible;
    flex: 1 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    cursor: pointer;
}

.menu_bt img {
    width: 44px;
    height: auto;
    transition: all 0.2s;
    margin-top: -15px;
}

/* 탭 활성화 상태 (Active) */
.menu_bt .icon-on { display: none; transform: scale(0.8); transition: all 0.3s ease-in-out;}
.menu_bt .icon-off { display: block; transform: scale(0.8); transition: all 0.3s ease-in-out;}

.menu_bt.active { 
    background-color: rgba(248, 144, 23, 1.0);
    border: 1px solid #F89017;
    color: #FFFFFF;
    font-weight: 800;
}
.menu_bt.active .icon-on { display: block; transform: scale(1.0); }
.menu_bt.active .icon-off { display: none; transform: scale(1.0); }







/* 전체 컨테이너 (앱 화면) */
.app_container {
    padding-top: 25px;
    width: 100%;
    height: auto;
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    background: none;
    overflow: auto;
}
.app_container 
.header {
    display: none;
}

/* Swiper 슬라이드 영역 */
.swiper {
    width: 100%;
    flex: 1; /* 남은 공간 다 채움 */
    overflow: hidden;
}

.swiper-slide {
    padding: 0 calc((100% - 1000px) / 2);
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: none;
    height: auto; /* 내용만큼 높이 조절 */
    overflow: auto;
}

/* 내용 박스 */
.content_box_wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-bottom: 25px;
}
.content_box {
    text-align: center;
    width: 100%;
    border-radius: 13px;
}

/* 스크롤 가능한 영역 (글이 긴 경우) */
.scroll-y {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 80px; /* 하단 탭 가리지 않게 */
}

/* 로고 및 헤더 */
.logo {
    width: 80px;
    margin-bottom: 10px;
}

/* 로또 공 디자인 */
.ball_li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}
.ball_li.last {
    margin-bottom: 20px;
}
.ball_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.ball_container_text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1em;
    color: #AF5E00;
    width: 42px;
    margin-left: -52px;
}

.ball, .placeholder {
    width: 44px;
    height: 44px;
    line-height: 1em;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #ADB5BD;
    background-color: #F1F3F5;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.placeholder {
    color: #adb5bd;
    background: #f1f3f5;
}

/* [수정] 큰 공(.ball)과 작은 공(.mini-ball) 모두에게 색상 적용 */
.ball.range-1, .mini-ball.range-1 { background-color: #ffc906; border: 1px solid #ffdf75; color: #FFFFFF; }
.ball.range-2, .mini-ball.range-2 { background-color: #69c8f2; color: #FFFFFF; }
.ball.range-3, .mini-ball.range-3 { background-color: #ff7272; color: #FFFFFF;}
.ball.range-4, .mini-ball.range-4 { background-color: #aaaaaa; color: #FFFFFF;}
.ball.range-5, .mini-ball.range-5 { background-color: #b0d840; color: #FFFFFF;}

/* 버튼 디자인 */
.draw-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 800;
    border: none;
    padding: 20px 40px;
    font-size: 16px;
    line-height: 1em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
}

/* 카드 뉴스 스타일 */
.card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.card h3 { margin: 0 0 10px 0; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.9rem; color: #666; }

/* 광고 박스 */
.ad-box {
    width: 100%;
    min-height: 250px;
    background: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #868e96;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 35px;
}

.slide_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.slide_header_text {
    font-size: 14px;
    line-height: 1.3em;
    color: #000000;
}
.slide_header_bt {
    border-radius: 30px;
    background: #FFA236;
    width: auto;
    height: auto;
    padding: 7px 15px;
    padding-right: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.slide_header_bt 
span {
    font-size: 14px;
    font-weight: 400;
    line-height: 1em;
    color: #FFFFFF;
}

.input_group {
    padding-top: 15px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.input_group_li {
    max-width: 250px;
    flex: 1 0 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.input_group_li select, 
.input_group_li input[type="number"], 
.input_group_li input[type="text"] {
    height: 36px;
    text-align: center;
    flex: 1 0 0;
}
.input_group_li_text {
    font-size: 14px;
}

/* 로또 공 등장 애니메이션 (통통 튀는 효과) */
@keyframes bounceIn {
    0% { 
        transform: scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.15); 
        opacity: 1; 
    }
    70% { 
        transform: scale(0.9); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* [New] 번호 다시 뽑기 버튼 (재시도) - 상큼한 초록색 계열 */
.draw-btn.retry {
    background: linear-gradient(135deg, #188858 0%, #3ca7ba 100%);
    box-shadow: 0 5px 15px rgba(60, 186, 146, 0.4);
}

/* [New] 분석 중 상태 (클릭 불가, 로딩 중) */
.draw-btn.processing {
    /* 로딩바 느낌의 그라데이션 (보라 -> 핑크 -> 보라) */
    background: linear-gradient(90deg, #9175d3, #ce4eaa, #9175d3);
    background-size: 200% 100%; /* 배경을 넓게 잡음 */
    animation: gradientMove 1.5s linear infinite; /* 배경 이동 애니메이션 */
    
    cursor: wait;
    opacity: 0.9;
    pointer-events: none; /* 클릭 방지 */
    padding-left: 25px; /* 스피너 공간 확보 */
}

/* [New] 배경 흐르는 애니메이션 */
@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* [New] 로딩 스피너 (버튼 내부) */
.draw-btn.processing::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-bottom: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ========================================================= */
/* 5. 팝업창 (모달) 스타일 */
/* ========================================================= */

/* 배경 (Overlay) */
.modal-wrapper {
    display: none; /* 기본 숨김 (JS에서 flex로 변경) */
    position: fixed;
    z-index: 1000; /* 맨 위에 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 반투명 배경 */
    backdrop-filter: blur(5px); /* 배경 흐림 효과 */
    
    /* display: flex; -> JS에서 처리 */
    justify-content: center;
    align-items: center;
    
    /* 애니메이션용 초기값 */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* 팝업 내용 박스 */
.modal-content {
    background-color: #fefefe;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* 화면 꽉 차지 않게 */
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

/* 닫기 버튼 (X) */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    margin-top: -10px;
    margin-right: -10px;
}
.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* 모달 제목 */
.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* 모달 본문 */
.modal-body {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* 활성화 클래스 */
.modal-wrapper.show {
    opacity: 1;
}
.modal-wrapper.show .modal-content {
    transform: translateY(0);
}

/* [New] 팝업 내용 스타일 */
.modal-body {
    text-align: center;
    padding: 10px 0;
}

.method-box {
    background-color: #fff3cd; /* 연한 노란색 배경 */
    border: 1px solid #ffeeba;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}
.method-box h3 {
    color: #856404;
    font-size: 16px;
    margin-bottom: 5px;
}
.method-box p {
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

.method-step {
    margin-bottom: 15px;
    text-align: center; /* [수정] 중앙 정렬 */
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.method-step:last-child {
    border-bottom: none;
}
.method-step h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 800;
}
.method-step p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.method-step strong {
    color: #007bff; /* 파란색 강조 */
}

.method-footer {
    margin-top: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
}
.method-footer strong {
    color: #28a745;
    text-decoration: underline;
}

/* [New] 하단 닫기 버튼 */
.modal-close-btn {
    background-color: #6c757d;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: none;
    padding: 12px 0;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.modal-close-btn:hover {
    background-color: #5a6268;
}


/* ========================================================= */
/* 7. 패션 잡지(Magazine) 스타일 (당첨 비법 탭) */
/* ========================================================= */

.magazine-layout {
    text-align: left;
    padding: 0;
    background-color: #fff; /* 잡지는 깨끗한 흰색 배경 */
}

/* 메인 커버 */
.mag-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* [수정] 무조건 16:9 비율 유지 */
    overflow: hidden;
}
.mag-cover-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7); 
    transition: transform 10s ease; 
    border-radius: 15px;
}
/* 커버 이미지 줌인 효과 */
.slide-secret:hover .mag-cover-img {
    transform: scale(1.1);
}

.mag-cover-text {
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 2;
}
.mag-badge {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}
.mag-cover-text h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 10px;
    font-family: 'Times New Roman', serif; /* 세리프 폰트로 우아하게 */
}
.mag-cover-text p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 인트로 텍스트 */
.mag-content {
    background-color: #FFFFFF;
    padding: 25px 25px;
}
.mag-intro {
    font-size: 18px;
    font-weight: 300; /* 얇은 폰트 */
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    font-style: italic; /* 기울임꼴로 감성 더하기 */
    text-align: center;
}
.mag-intro strong {
    font-weight: 700;
    color: #000;
    font-style: normal;
    background: linear-gradient(to top, #ffeaa7 50%, transparent 50%);
}

.mag-divider {
    width: 50px;
    height: 2px;
    background-color: #000;
    margin: 40px auto;
}

/* 섹션 스타일 */
.mag-section {
    padding: 0 20px;
    padding-bottom: 60px;
    background-color: #FFFFFF;
}
.mag-img {
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 16 / 9; /* [수정] 무조건 16:9 비율 유지 */
    object-fit: cover; /* 비율 유지하며 꽉 채우기 */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.mag-subtitle {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
    font-family: 'Times New Roman', serif;
    letter-spacing: -0.5px;
}
.mag-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* 양쪽 정렬로 깔끔하게 */
    letter-spacing: -0.02em;
}

/* 인용구 */
.mag-quote {
    border-left: 3px solid #000;
    padding-left: 15px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    font-family: 'NanumSquare', serif;
    font-style: italic;
    background: #f9f9f9;
    padding: 15px;
}

/* 푸터 */
.mag-footer {
    text-align: center;
    padding-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    background-color: #FFFFFF;
    border-radius: 0 0 15px 15px;
}
.mag-footer p {
    font-size: 10px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* [New] FAQ 스타일 */
.mag-faq-item {
    background-color: #f8f9fa;
    border-left: 4px solid #333;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
}
.mag-faq-item strong {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
}
.mag-faq-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}


/* ========================================================= */
/* 8. 번호 분석 탭 스타일 */
/* ========================================================= */

.anal-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin: 20px 0;
    text-align: center;
}

.anal-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.anal-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.anal-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

/* 1. 최근 당첨 번호 리스트 */
.recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.recent-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.recent-round {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    width: 50px;
}
.recent-balls {
    flex: 1 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.mini-ball {
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. 막대 그래프 (Hot Numbers) */
.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
.bar-label {
    width: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bar-track {
    flex: 1;
    background: #f0f0f0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 10px;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    background: #ff6b6b;
    border-radius: 6px;
    width: 0; /* JS로 채움 */
    transition: width 1s ease-out;
}
.bar-value {
    width: 30px;
    text-align: right;
    color: #666;
    font-size: 12px;
}

/* 3. 색상 차트 */
.color-chart-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.color-segment {
    height: 100%;
    transition: width 1s ease-out;
}
.color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #666;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* 4. 홀짝 바 */
.balance-wrap {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    line-height: 30px;
}
.balance-bar {
    text-align: center;
    transition: width 1s ease-out;
}
.balance-bar.odd { background: #4facfe; }
.balance-bar.even { background: #00f2fe; color: #333; }






@media all and (max-width:1050px) {
    .header {
        padding: 25px 25px;
    }
    .menu {
        padding: 0 25px;
    }
    .app-container {
        padding: 0 25px;
    }
    .swiper-slide {
        padding: 0 25px;
    }
}

@media all and (max-width:800px) {
    .header.web_ver {
        display: none;
    }
    .app_container 
    .header {
        display: flex;
        gap: 10px;
        padding: 25px 0;
    }

    .app_container {
        order: 1;
    }

    .menu {
        order: 2;
        border-top: 1px solid rgba(255,255,255,0.3);
        height: 60px;
        gap: 0;
        padding: 0 0;
        background-color: #FFFFFF;
    }
    .menu_bt {
        padding: 0 5px;
        padding-right: 10px;
        border-radius: 23px;
        height: auto;
        font-size: 18px;
        line-height: 1em;
        background-color: rgba(248, 144, 23, 0.0);
        border: 0px solid #F89017;
        color: rgba(0,0,0,0.5);
        font-weight: 400;
        transition: all 0.3s ease-in-out;
        overflow: visible;
        flex: 1 0 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }
    .menu_bt.active {
        background-color: rgba(248, 144, 23, 0.0);
        color: rgba(0,0,0,1.0);
        border: none;
    }
    .menu_bt 
    img {
        width: 20px;
        height: auto;
        margin-top: 0px;
    }
    .menu_bt 
    span {
        flex: 0 0 100%;
        font-size: 13px;
    }

    .app_container {
        padding-top: 0;
    }

    .header_title_text {
        padding-bottom: 5px;
        font-size: 22px;
        font-weight: 800;
        line-height: 1em;
        color: #FFFFFF;
    }
    .header_title_sub {
        font-size: 11px;
        font-weight: 300;
        line-height: 1em;
        color: #D87300;
    }
    .header img {
        width: 46px;
        height: auto;
    }
    .slide_header_text {
        flex: 0 0 100%;
        font-size: 13px;
    }
    .slide_header_bt {
        flex: 0 0 270px;
    }
    .ball_li {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }
    .ball, 
    .placeholder {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .ball_container_text {
        font-size: 11px;
        font-weight: 400;
        line-height: 1em;
        color: #AF5E00;
        width: 42px;
        margin-left: -52px;
    }

}
@media all and (max-width:350px) {
    .ball, 
    .placeholder {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}