@charset "UTF-8";
/* ================================================
   로또 볼 & 당첨 카드 스타일 (style-lotto.css)
   ================================================ */

/* 기본 볼 */
.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
}

/* 볼 색상 (번호 범위별) */
.lotto-ball--y  { background: #ffe066; color: #222; } /* 1~10  */
.lotto-ball--b  { background: #5bc0ff; color: #fff; } /* 11~20 */
.lotto-ball--r  { background: #ff6b6b; color: #fff; } /* 21~30 */
.lotto-ball--gr { background: #adb5bd; color: #222; } /* 31~40 */
.lotto-ball--gn { background: #51cf66; color: #222; } /* 41~45 */

/* 보너스 구분 기호 */
.lotto-ball-sep {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    color: #bbb;
    font-weight: 300;
    line-height: 1;
    padding: 0 2px;
}

/* ================================================
   메인 홈 최근 당첨 카드
   ================================================ */
/* .home-card--lotto는 .home-card의 #fff 배경 그대로 사용 */

/* 헤더: 타이틀 + 컨트롤 나란히 */
.lotto-hd-flex {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.lotto-home-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

.lotto-ctrl-sel {
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
    border: 1px solid #dde3ee;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}

#home-lotto-range { width: 110px; }
#home-lotto-round { width: 80px; }

.lotto-ctrl-btn {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #4A90E2;
    border-radius: 4px;
    background: #4A90E2;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.lotto-ctrl-btn:hover { background: #357ABD; border-color: #357ABD; }

/* 볼 행 + 컨트롤 같은 줄 */
.lotto-home-balls-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lotto-home-balls-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.lotto-home-balls-row .lotto-ball {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.lotto-bonus-ball {
    box-shadow: 0 0 0 2px #ccc, inset 0 -2px 4px rgba(0,0,0,0.15);
    opacity: 0.85;
}

/* 통계 그리드 */
.lotto-home-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 14px;
    padding-top: 10px;
    border-top: 1px solid #eef0f6;
}

.lotto-home-stat-item dt {
    font-size: 11px;
    color: #8892a6;
    margin-bottom: 2px;
    font-weight: 400;
}

.lotto-home-stat-item dd {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================
   로또 페이지 당첨결과 카드
   ================================================ */
.lotto-draw-section {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 10px;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

.lotto-draw-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0a500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lotto-draw-card {
    background: #fff;
    border: 1px solid #e8e0c0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

/* 회차 네비게이션 */
.lotto-draw-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lotto-draw-nav-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #444;
    transition: background 0.15s;
    font-weight: 600;
}

.lotto-draw-nav-btn:hover:not(:disabled) {
    background: #e8e8e8;
}

.lotto-draw-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.lotto-draw-nav-round {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 70px;
    text-align: center;
}

.lotto-draw-nav-latest {
    margin-left: auto;
    background: #f0a500;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
}

.lotto-draw-nav-latest:hover {
    background: #d68910;
}

/* 볼 영역 */
.lotto-draw-balls-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.lotto-draw-card .lotto-ball {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

/* 상세 정보 그리드 */
.lotto-draw-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0e8c0;
}

.lotto-draw-info-item dt {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
    font-weight: 400;
}

.lotto-draw-info-item dd {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.lotto-draw-info-item dd.prize-amt {
    color: #e74c3c;
    font-size: 15px;
}

/* 로딩 */
.lotto-draw-loader {
    text-align: center;
    padding: 24px;
    color: #aaa;
    font-size: 14px;
}

/* ================================================
   모바일
   ================================================ */
@media (max-width: 768px) {
    .lotto-ball {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .lotto-draw-card .lotto-ball {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .lotto-draw-balls-row {
        gap: 4px;
    }

    .lotto-draw-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lotto-home-balls-row .lotto-ball {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .lotto-home-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .lotto-home-ctrl { gap: 4px; }
    .lotto-ctrl-sel { height: 26px; font-size: 11px; }
    #home-lotto-range { width: 90px; }
    #home-lotto-round { width: 68px; }
    .lotto-ctrl-btn { height: 26px; padding: 0 10px; font-size: 11px; }
}
