@charset "utf-8";

/* 최근게시물 스킨 (new) */
#new_sch {background:#f7f7f7;padding:10px;text-align:center;margin:0 0 10px}
#new_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
#new_sch select {border:1px solid #d0d3db;width:175px;height:45px;padding:0 5px;border-radius:3px}
#new_sch .frm_input {border:1px solid #d0d3db;width:300px;height:45px;border-radius:0;border-radius:3px}
#new_sch .sch_wr {position:relative;display:inline-block}
#new_sch .btn_submit {padding:0 10px;height:45px;width:88px;font-size:1.083em;font-weight:bold;color:#fff;background:#434a54}
#new_sch p {padding:10px 0 0;font-size:0.95em;text-align:center;letter-spacing:-0.1em}

#fnewlist .profile_img img {border-radius:50%}
#fnewlist .td_group a {background:#edfbde;color:#8cc152;padding:3px 4px;border-radius:5px;font-weight:normal}
#fnewlist .td_board a {background:#eeeaf8;color:#ac92ec;padding:3px 4px;border-radius:5px;font-weight:normal}

.admin_new_btn {float:right;margin-bottom:10px}

.selec_chk {position:absolute;top:0;left:0;width:0;height:0;opacity:0;outline:0;z-index:-1;overflow:hidden}
.chk_box input[type="checkbox"] + label {position:relative;padding-left:20px;color:#676e70}
.chk_box input[type="checkbox"] + label:hover {color:#2172f8}
.chk_box input[type="checkbox"] + label span {position:absolute;top:2px;left:0;width:15px;height:15px;display:block;margin:0;background:#fff;border:1px solid #d0d4df;border-radius:3px}
.chk_box input[type="checkbox"]:checked + label {color:#000}
.chk_box input[type="checkbox"]:checked + label span {background:url(../../../img/chk.png) no-repeat 50% 50% #3a8afd;border-color:#1471f6;border-radius:3px}
.new_sch table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;

  max-width: 960px;
  font-family: sans-serif;

  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.new_sch table td:nth-child(1),
.new_sch table th:nth-child(1) {
  width: 5%; /* 2열로 넓게 분할 */
}

.new_sch table td:nth-child(2),
.new_sch table th:nth-child(2) {
  width: 15%; /* 2열로 넓게 분할 */
}

.new_sch table td:nth-child(4),
.new_sch table th:nth-child(4) {
  width: 10%; /* 2열로 넓게 분할 */
}


.new_sch table td:nth-child(5),
.new_sch table th:nth-child(5) {
  width: 7%; /* 2열로 넓게 분할 */
}
.new_sch table td:nth-child(6),
.new_sch table th:nth-child(6) {
  width: 17%; /* 2열로 넓게 분할 */
}


.new_sch thead tr {
  background-color: #009879;
  color: #fff;
  text-align: center;
}
.new_sch th, .new_sch td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}
.new_sch tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}
.new_sch tbody tr:hover {
  background-color: #e9f5f3;
}
.new_sch tbody tr:last-child td {
  border-bottom: none;
}
.chk_box {
  text-align: center;
}
.new_tit {
  color: #0056b3;
  text-decoration: none;
}
.new_tit:hover {
  text-decoration: underline;
}
.td_date {
  white-space: nowrap;
  font-size: 0.9em;
  color: #666;
}
.admin_new_btn {
  text-align: center;
  margin-bottom: 10px;
}
.admin_new_btn .btn {
  background: #e3342f;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.admin_new_btn .btn:hover {
  background: #cc1f1a;
}
/* 공지 행 강조 */
.highlight-notice {
  background-color: #fffbdb; /* 연한 노란색 배경 */
  border-left: 4px solid #ffd700; /* 금색 왼쪽 라인 강조 */
}
.highlight-notice .new_tit {
  font-weight: bold;
  color: #b36b00; /* 진한 주황 텍스트 */
}

/* 오늘 게시글 강조 스타일 */
.today-row {
  background-color: #e3f2fd;
}
.today-row .td_date {
  color: #1e88e5;
  font-
  weight: bold;
}


/* 페이징을 감싸는 wrapper */
.paging-wrapper {
  display: flex;
  justify-content: center; /* 가로 중앙 정렬 */
  margin-top: 20px;
}

/* 내부 ul.pagination 요소 정렬 */
.paging-wrapper ul {
  list-style: none;
  display: flex;
  gap: 6px;                /* 페이지 번호 간 간격 */
  padding: 0;
  margin: 0;
}



/* ==================================================
   공통
================================================== */

.lotto-box,
.birth-lotto-box,
.rank-summary,
.history-make-box{
    max-width:520px;
    margin:30px auto;
    padding:20px;
    border:1px solid #ddd;
    border-radius:12px;
    box-sizing:border-box;
}

.lotto-box,
.rank-summary,
.history-make-box{
    text-align:center;
}

.birth-lotto-box,
.rank-summary,
.history-make-box{
    background:#fafafa;
}


/* ==================================================
   번호 조회
================================================== */

.lotto-box{
    font-family:Arial, sans-serif;
}

.lotto-title{
    margin-bottom:15px;
    font-size:24px;
    font-weight:bold;
}

.search-wrap{
    display:flex;
    justify-content:center;
    gap:6px;
    margin-top:20px;
    flex-wrap:wrap;
}

.search-wrap input{
    width:48px;
    height:40px;
    border:1px solid #ccc;
    border-radius:6px;
    text-align:center;
    font-size:18px;
}

#searchBtn,
#resetBtn,
#birthMakeBtn,
#historyMakeBtn,
.selected-lotto-btn{
    border:0;
    border-radius:6px;
    color:#fff;
    cursor:pointer;
}

#searchBtn,
#resetBtn,
#historyMakeBtn{
    height:42px;
}

#searchBtn{
    padding:0 18px;
    background:#111;
    font-weight:bold;
}

#resetBtn{
    padding:0 14px;
    background:#555;
}

#resetBtn:hover{
    background:#333;
}

.info-box{
    margin-top:15px;
    color:#777;
    font-size:13px;
}


/* ==================================================
   조회 결과
================================================== */

.result-wrap{
    max-width:520px;
    margin:25px auto;
    text-align:center;
}

.result-item{
    margin:20px auto;
    padding:20px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
}

.result-item + .result-item{
    margin-top:25px;
}

.result-title{
    margin-bottom:8px;
    font-size:22px;
    font-weight:bold;
}

.result-date{
    margin-bottom:15px;
    color:#666;
}

.result-balls{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-bottom:15px;
    flex-wrap:wrap;
}

.result-ball{
    min-width:58px;
    height:44px;
    line-height:44px;
    display:inline-block;
    border-radius:22px;
    color:#fff;
    text-align:center;
    font-size:15px;
    font-weight:bold;
}


/* 결과 공 색상 */

.yellow{
    background:#fbc400;
}

.blue{
    background:#69c8f2;
}

.red{
    background:#ff7272;
}

.gray{
    background:#999;
}

.green{
    background:#b0d840;
}


/* 결과 정보 */

.bonus-box{
    margin:10px 0;
    font-size:18px;
    font-weight:bold;
}

.match-count{
    margin:12px 0;
    font-size:18px;
    font-weight:bold;
}

.rank-box{
    margin:15px 0;
    color:#e60012;
    font-size:28px;
    font-weight:bold;
}

.miss-title{
    margin-top:15px;
    font-weight:bold;
}

.miss-box{
    margin-top:8px;
}

.miss-ball{
    display:inline-block;
    margin:3px;
    padding:6px 10px;
    border-radius:15px;
    background:#333;
    color:#fff;
    font-weight:bold;
}


/* ==================================================
   생년월일 번호 만들기
================================================== */

.birth-title{
    margin-bottom:10px;
    font-size:15px;
    font-weight:bold;
}

.birth-wrap{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

#birthYear,
#birthMonth,
#birthDay{
    height:36px;
    padding:0 8px;
    border:1px solid #ccc;
    border-radius:6px;
    background:#fff;
}

#birthMakeBtn{
    height:36px;
    padding:0 14px;
    background:#222;
}

#birthMakeBtn:hover,
#historyMakeBtn:hover{
    background:#000;
}

.birth-result-balls{
    display:flex;
    gap:8px;
    margin-top:12px;
    flex-wrap:wrap;
}

.birth-ball{
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    box-shadow:
        inset 0 -3px 5px rgba(0,0,0,.25),
        0 2px 5px rgba(0,0,0,.25);
}

.birth-ball.yellow{
    background:linear-gradient(#f6c343,#d99a00);
}

.birth-ball.blue{
    background:linear-gradient(#4aa3ff,#0068c9);
}

.birth-ball.red{
    background:linear-gradient(#ff6b6b,#d71920);
}

.birth-ball.gray{
    background:linear-gradient(#999,#555);
}

.birth-ball.green{
    background:linear-gradient(#48c774,#138a3d);
}


/* ==================================================
   등수 요약
================================================== */

.rank-summary{
    margin:25px auto;
}

.rank-summary-title{
    margin-bottom:15px;
    font-size:20px;
    font-weight:bold;
}

.rank-summary-list,
.history-rank-counts{
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
}

.rank-summary-item{
    min-width:80px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}

.rank-summary-item strong,
.history-count-item strong{
    display:block;
    margin-bottom:5px;
}

.rank-summary-item strong{
    font-size:17px;
}

.rank-summary-item span{
    color:#e60012;
    font-size:20px;
    font-weight:bold;
}


/* ==================================================
   역대 번호 만들기
================================================== */

.history-make-box{
    margin:20px auto;
}

#historyMakeBtn{
    padding:0 18px;
    background:#222;
    font-weight:bold;
}

#historyResultBalls{
    margin-top:15px;
    justify-content:center;
}


/* ==================================================
   페이지 메뉴
================================================== */

.lotto-page-menu{
    max-width:900px;
    margin:30px auto 20px;
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
}

.lotto-page-menu a{
    min-width:140px;
    height:44px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    color:#333;
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
    box-sizing:border-box;
}

.lotto-page-menu a:hover{
    background:#f5f5f5;
}

.lotto-page-menu a.active{
    border-color:#111;
    background:#111;
    color:#fff;
}

.lotto-page-content{
    width:100%;
}


/* ==================================================
   많이 나온 로또 번호
================================================== */

.hot-lotto-section{
    margin:25px 0;
}

.hot-lotto-title{
    margin:15px 0 8px;
    font-size:18px;
    font-weight:bold;
}

.hot-lotto-sub{
    margin-bottom:12px;
    color:#666;
    font-size:13px;
    line-height:1.5;
}

.hot-lotto-wrap{
    display:flex;
    align-items:center;
    gap:14px;
    padding:15px 0;
    flex-wrap:wrap;
}

.hot-lotto-item{
    position:relative;
    width:48px;
    height:48px;
}

.hot-lotto-ball,
.lotto-ball,
.history-rank-ball{
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    font-weight:bold;
}

.hot-lotto-ball{
    width:48px;
    height:48px;
    font-size:18px;
    cursor:pointer;
    transition:transform .2s;
    box-shadow:
        inset 0 -3px 5px rgba(0,0,0,.25),
        0 3px 6px rgba(0,0,0,.25);
}

.hot-lotto-ball:hover{
    transform:scale(1.08);
}

.hot-lotto-count{
    position:absolute;
    top:-8px;
    right:-8px;
    min-width:22px;
    height:22px;
    padding:0 5px;
    border:2px solid #fff;
    border-radius:50%;
    background:#111;
    color:#fff;
    text-align:center;
    line-height:18px;
    font-size:11px;
    font-weight:bold;
    box-sizing:border-box;
    box-shadow:0 2px 5px rgba(0,0,0,.35);
}


/* 공 색상 */

.ball-yellow{
    background:linear-gradient(145deg,#ffd84d,#f5b800);
}

.ball-blue{
    background:linear-gradient(145deg,#72d1ff,#3297cf);
}

.ball-red{
    background:linear-gradient(145deg,#ff8585,#e45050);
}

.ball-gray{
    background:linear-gradient(145deg,#b8b8b8,#777);
}

.ball-green{
    background:linear-gradient(145deg,#badd5c,#72a426);
}


/* ==================================================
   선택 번호
================================================== */

.selected-lotto-box{
    margin:20px 0;
    padding:15px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}

.selected-lotto-title{
    margin-bottom:10px;
    font-weight:bold;
}

.selected-lotto-ball{
    width:38px;
    height:38px;
    margin:4px;
    display:inline-block;
    border-radius:50%;
    background:#111;
    color:#fff;
    text-align:center;
    line-height:38px;
    font-weight:bold;
}

.selected-lotto-btn{
    margin-top:10px;
    padding:7px 12px;
    background:#333;
}


/* ==================================================
   역대 TOP 6
================================================== */

.all-time-top-wrap{
    max-width:900px;
    margin:30px auto;
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:20px;
    flex-wrap:wrap;
}

.all-time-top-box{
    flex:1;
    min-width:350px;
    padding:20px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fafafa;
    text-align:center;
}

.all-time-top-title{
    margin-bottom:18px;
    font-size:18px;
    font-weight:bold;
}

.top6-group{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:10px;
    flex-wrap:nowrap;
}

.top6-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:0 0 auto;
}

.top6-count{
    margin-top:6px;
    color:#e60012;
    font-size:13px;
    font-weight:bold;
    white-space:nowrap;
}


/* ==================================================
   역대 2등 분석
================================================== */

.second-history-wrap{
    max-width:960px;
    margin:40px auto;
    padding:0 15px;
    font-family:Pretendard,"Noto Sans KR",Arial,sans-serif;
    box-sizing:border-box;
}

.second-history-wrap > h2{
    margin:0 0 30px;
    padding:22px 20px;
    border:1px solid #e8e8e8;
    border-radius:16px;
    background:linear-gradient(135deg,#111,#292929);
    color:#fff;
    text-align:center;
    font-size:26px;
    font-weight:800;
    letter-spacing:-1px;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.second-history-item{
    position:relative;
    margin-bottom:20px;
    padding:28px 24px 22px;
    border:1px solid #e5e5e5;
    border-radius:18px;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
    transition:.2s ease;
}

.second-history-item:hover{
    transform:translateY(-3px);
    border-color:#ccc;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.ranking{
    position:absolute;
    top:14px;
    left:14px;
    min-width:48px;
    padding:7px 11px;
    border-radius:20px;
    background:#111;
    color:#fff;
    text-align:center;
    font-size:13px;
    font-weight:800;
    box-shadow:0 3px 8px rgba(0,0,0,.18);
}

.second-history-item:nth-of-type(1) .ranking{
    background:linear-gradient(135deg,#f2b500,#d98e00);
}

.second-history-item:nth-of-type(2) .ranking{
    background:linear-gradient(135deg,#aeb5bd,#727b85);
}

.second-history-item:nth-of-type(3) .ranking{
    background:linear-gradient(135deg,#b97942,#8d4f22);
}

.lotto-number-group{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:18px 0 24px;
    flex-wrap:nowrap;
}

.lotto-ball{
    width:48px;
    height:48px;
    flex:0 0 48px;
    font-size:17px;
    font-weight:800;
    text-shadow:0 1px 2px rgba(0,0,0,.28);
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,.35),
        inset 0 -4px 5px rgba(0,0,0,.15),
        0 4px 8px rgba(0,0,0,.15);
}

.rank-count-group{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
    margin-top:18px;
}

.rank-count-group > span{
    padding:12px 6px;
    border:1px solid #e8e8e8;
    border-radius:10px;
    background:#fafafa;
    color:#555;
    text-align:center;
    font-size:13px;
    font-weight:700;
    line-height:1.6;
}

.rank-count-group > span:nth-child(2){
    border-color:#ffb8b8;
    background:#fff1f1;
    color:#e60012;
    font-size:15px;
}

.source-info{
    margin-top:18px;
    padding-top:15px;
    border-top:1px solid #eee;
    color:#888;
    text-align:center;
    font-size:13px;
    line-height:1.7;
}

.source-info strong{
    color:#e60012;
}


/* ==================================================
   역대 1등 분석
================================================== */

.history-rank-wrap{
    max-width:900px;
    margin:30px auto;
}

.history-rank-item{
    margin-bottom:20px;
    padding:20px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
    text-align:center;
}

.history-rank-title{
    font-size:20px;
    font-weight:bold;
}

.history-rank-date{
    margin-top:5px;
    color:#777;
    font-size:13px;
}

.history-rank-balls{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin:18px 0;
}

.history-rank-ball{
    width:46px;
    height:46px;
    font-size:16px;
}

.history-count-item{
    min-width:70px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fafafa;
}

.history-count-item span{
    color:#e60012;
    font-size:17px;
    font-weight:bold;
}


/* ==================================================
   모바일
================================================== */

@media (max-width:600px){

    .all-time-top-box{
        min-width:0;
        width:100%;
        padding:15px 8px;
    }

    .top6-group,
    .lotto-number-group,
    .history-rank-balls{
        gap:5px;
    }

    .top6-group .hot-lotto-ball,
    .lotto-ball{
        width:42px;
        height:42px;
        flex-basis:42px;
        font-size:15px;
    }

    .second-history-wrap{
        padding:0 8px;
    }

    .second-history-wrap > h2{
        padding:18px 10px;
        font-size:21px;
    }

    .second-history-item{
        padding:32px 8px 18px;
    }

    .ranking{
        top:8px;
        left:8px;
    }

    .rank-count-group{
        gap:5px;
    }

    .rank-count-group > span{
        padding:8px 2px;
        font-size:11px;
    }

    .rank-count-group > span:nth-child(2){
        font-size:12px;
    }

    .source-info{
        font-size:12px;
    }

}


/* ==================================================
   모든 로또 번호 정사각형 고정
================================================== */

/* 공통 설정 */
.result-ball,
.birth-ball,
.hot-lotto-ball,
.lotto-ball,
.history-rank-ball,
.selected-lotto-ball{
    padding:0 !important;
    margin-left:0;
    margin-right:0;

    flex-grow:0 !important;
    flex-shrink:0 !important;

    border-radius:50% !important;

    box-sizing:border-box !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    line-height:1 !important;

    text-align:center !important;

    overflow:hidden !important;
}


/* ==================================================
   조회 결과 공
================================================== */

.result-ball{
    width:48px !important;
    height:48px !important;

    min-width:48px !important;
    min-height:48px !important;

    max-width:48px !important;
    max-height:48px !important;

    flex:0 0 48px !important;

    aspect-ratio:1 / 1 !important;
}


/* ==================================================
   많이 나온 번호 공
================================================== */

.hot-lotto-ball{
    width:48px !important;
    height:48px !important;

    min-width:48px !important;
    min-height:48px !important;

    max-width:48px !important;
    max-height:48px !important;

    flex:0 0 48px !important;

    aspect-ratio:1 / 1 !important;
}


/* ==================================================
   page=3 역대 2등 번호 그룹
================================================== */

.second-history-wrap .lotto-number-group{
    width:100% !important;

    display:grid !important;

    grid-template-columns:
        repeat(6, 48px) !important;

    justify-content:center !important;
    align-items:center !important;

    gap:10px !important;

    margin:18px 0 24px !important;
}


/* ==================================================
   page=3 역대 2등 로또 공
   화면 크기와 관계없이 48 × 48 고정
================================================== */

.second-history-wrap
.lotto-number-group
.lotto-ball{

    width:48px !important;
    height:48px !important;

    min-width:48px !important;
    min-height:48px !important;

    max-width:48px !important;
    max-height:48px !important;

    inline-size:48px !important;
    block-size:48px !important;

    min-inline-size:48px !important;
    min-block-size:48px !important;

    max-inline-size:48px !important;
    max-block-size:48px !important;

    flex:none !important;

    aspect-ratio:1 / 1 !important;

    padding:0 !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:50% !important;

    box-sizing:border-box !important;

    line-height:1 !important;

    font-size:17px !important;
    font-weight:800 !important;

    white-space:nowrap !important;

    overflow:hidden !important;
}


/* ==================================================
   page=2 역대 1등 공
================================================== */

.history-rank-ball{
    width:46px !important;
    height:46px !important;

    min-width:46px !important;
    min-height:46px !important;

    max-width:46px !important;
    max-height:46px !important;

    flex:0 0 46px !important;

    aspect-ratio:1 / 1 !important;
}


/* ==================================================
   생년월일 공
================================================== */

.birth-ball{
    width:42px !important;
    height:42px !important;

    min-width:42px !important;
    min-height:42px !important;

    max-width:42px !important;
    max-height:42px !important;

    flex:0 0 42px !important;

    aspect-ratio:1 / 1 !important;
}


/* ==================================================
   선택 번호 공
================================================== */

.selected-lotto-ball{
    width:38px !important;
    height:38px !important;

    min-width:38px !important;
    min-height:38px !important;

    max-width:38px !important;
    max-height:38px !important;

    flex:0 0 38px !important;

    aspect-ratio:1 / 1 !important;
}


/* ==================================================
   역대 5등 TOP 강조
================================================== */

.rank-count-group > span.fifth-active{
    border:2px solid #e60012 !important;
    background:#fff1f1 !important;
    color:#e60012 !important;
    font-size:15px !important;
    font-weight:bold !important;
}

/* 5등 페이지에서는 기존 2등 강조 제거 */
.fifth-history-wrap
.rank-count-group > span:nth-child(2){
    border:1px solid #e8e8e8;
    background:#fafafa;
    color:#555;
    font-size:13px;
}


/* 5등만 강조 */
.fifth-history-wrap
.rank-count-group > span.fifth-active{
    border:2px solid #e60012 !important;
    background:#fff1f1 !important;
    color:#e60012 !important;
    font-size:15px !important;
}

/* ==================================================
   전체 바깥 박스 / 공지 960px 공통 보정
================================================== */
.lotto-page-content,
.new_sch,
.tbl_wrap,
.tbl_head01,
.latest_lotto_notice_wrap,
.basic-update-list-wrap{
    width:100% !important;
    max-width:960px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

.new_sch table,
.tbl_wrap table,
.tbl_head01 table{
    width:100% !important;
    max-width:960px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

.second-history-wrap{
    width:100% !important;
    max-width:960px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

@media (max-width:980px){
    .lotto-page-content,
    .new_sch,
    .tbl_wrap,
    .tbl_head01,
    .latest_lotto_notice_wrap,
    .basic-update-list-wrap,
    .second-history-wrap{
        width:calc(100% - 16px) !important;
        max-width:calc(100% - 16px) !important;
        margin-left:8px !important;
        margin-right:8px !important;
    }
}


/* ==================================================
   모바일/PC 공통 바깥쪽 테두리 크기 통일
   - 제일 큰 기준 960px
   - 각 페이지 큰 박스 폭을 같은 기준으로 맞춤
   - 내부 작은 카드까지 강제로 늘리지 않음
================================================== */
.lotto-page-menu,
.lotto-page-content,
.lotto-page-content > .lotto-box,
.lotto-page-content > .birth-lotto-box,
.lotto-page-content > .rank-summary,
.lotto-page-content > .result-wrap,
.lotto-page-content > .history-rank-wrap,
.lotto-page-content > .history-make-box,
.lotto-page-content > .hot-lotto-section,
.lotto-page-content > .all-time-top-wrap,
.lotto-page-content > .second-history-wrap,
.lotto-page-content > .registered-rank-wrap,
.lotto-page-content > .wn-round-rank-wrap,
.lotto-page-content > .wn-new-wrap,
.lotto-page-content > .lotto-notice-page-wrap,
.lotto-page-content > .latest_lotto_notice_wrap,
.lotto-page-content > .basic-update-list-wrap,
.lotto-page-content > .tbl_wrap,
.lotto-page-content > .tbl_head01,
.lotto-page-content > .new_sch{
    width:100% !important;
    max-width:960px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

/* new_skin_sub.php 안의 조회 박스도 960px 기준으로 통일 */
.lotto-box,
.birth-lotto-box,
.result-wrap,
.rank-summary,
.history-rank-wrap,
.history-make-box{
    width:100% !important;
    max-width:960px !important;
    margin-left:auto !important;
    margin-right:auto !important;
	 margin:30px auto !important;
    box-sizing:border-box !important;
}

/* 통계 기반 추천 5줄처럼 큰 테두리 박스도 같은 기준 */
.stats-recommend-section,
.hot-lotto-section,
.all-time-top-wrap,
.second-history-wrap,
.registered-rank-wrap,
.wn-round-rank-wrap,
.wn-new-wrap{
    width:100% !important;
    max-width:960px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

/* 표/공지 내부가 바깥쪽 테두리 밖으로 밀리지 않게 보정 */
.lotto-page-content table,
.lotto-page-content iframe,
.lotto-page-content img,
.lotto-page-content input,
.lotto-page-content select,
.lotto-page-content textarea,
.lotto-page-content button{
    max-width:100% !important;
    box-sizing:border-box !important;
}

@media (max-width:980px){
    .lotto-page-menu,
    .lotto-page-content,
    .lotto-page-content > .lotto-box,
    .lotto-page-content > .birth-lotto-box,
    .lotto-page-content > .rank-summary,
    .lotto-page-content > .result-wrap,
    .lotto-page-content > .history-rank-wrap,
    .lotto-page-content > .history-make-box,
    .lotto-page-content > .hot-lotto-section,
    .lotto-page-content > .all-time-top-wrap,
    .lotto-page-content > .second-history-wrap,
    .lotto-page-content > .registered-rank-wrap,
    .lotto-page-content > .wn-round-rank-wrap,
    .lotto-page-content > .wn-new-wrap,
    .lotto-page-content > .lotto-notice-page-wrap,
    .lotto-page-content > .latest_lotto_notice_wrap,
    .lotto-page-content > .basic-update-list-wrap,
    .lotto-page-content > .tbl_wrap,
    .lotto-page-content > .tbl_head01,
    .lotto-page-content > .new_sch,
    .lotto-box,
    .birth-lotto-box,
    .result-wrap,
    .rank-summary,
    .history-rank-wrap,
    .history-make-box,
    .stats-recommend-section,
    .hot-lotto-section,
    .all-time-top-wrap,
    .second-history-wrap,
    .registered-rank-wrap,
    .wn-round-rank-wrap,
    .wn-new-wrap{
        width:calc(100vw - 16px) !important;
        max-width:calc(100vw - 16px) !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}

@media (max-width:600px){
    .lotto-page-content,
    .lotto-box,
    .birth-lotto-box,
    .result-wrap,
    .rank-summary,
    .history-rank-wrap,
    .history-make-box,
    .stats-recommend-section,
    .hot-lotto-section,
    .all-time-top-wrap,
    .second-history-wrap,
    .registered-rank-wrap,
    .wn-round-rank-wrap,
    .wn-new-wrap{
        border-radius:14px !important;
    }

    .lotto-box,
    .birth-lotto-box,
    .rank-summary,
    .history-make-box{
        padding-left:12px !important;
        padding-right:12px !important;
    }
}

