* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}


body {
    margin: 0;
    padding: 16px;
    background: #f4f6f8;
    font-family: Arial;
    font-family: 'GMarketSans';
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 로딩 */
#loading-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

#progress-wrap {
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    height: 18px;
    margin-top: 12px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1e90ff, #4facfe);
    transition: width .2s;
}

/* 공통 UI */
.box {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.last {
    background: linear-gradient(135deg, #1e90ff, #4facfe);
    color: #fff;
}

.balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #ffcc00;
    color: #222;
}

.front {
    background: #fff;
    color: #1e90ff;
    outline: 3px solid #1e90ff;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

.num {
    background: #f1f3f6;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}

.hot {
    background: #fff1f2;
    border: 2px solid #e63946;
}

/* 5회 이상 (강조) */
.super-hot {
    background: linear-gradient(135deg, #ff4d00, #ff9f1c);
    border: 2px solid #ff4d00;
    color: #fff;
}

.super-hot strong {
    color: #fff;
}

.super-hot .count-badge {
    background: rgba(255, 255, 255, 0.85);
    color: #b91c1c;
}

.blue {
    color: #1e90ff;
}

.green {
    color: #2a9d8f;
}

.red {
    color: #e63946;
}

.game {
    background: #111827;
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    margin-top: 12px;
}


/* ===== 이번주 당첨결과 이미지 스타일 ===== */
.lotto-result-box {
    background: #fff;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    margin-bottom: 30px;
}

.lotto-title {
    font-size: 28px;
    font-weight: 700;
}

.lotto-title .round {
    color: #ff4d00;
}

.lotto-date {
    margin-top: 8px;
    color: #666;
    font-size: 15px;
}

/* ===== 당첨결과 번호 정렬 보정 ===== */
.lotto-numbers-wrap {
    margin-top: 30px;
    display: grid;
    grid-template-columns: auto 40px auto;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* 당첨번호 / 보너스 카드 공통 */
.lotto-card {
    background: #fafafa;
    padding: 16px;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 72px;
}

/* 보너스 카드도 동일 규격 */
.lotto-card.bonus {
    padding: 16px;
}

/* + 기호 */
.lotto-plus {
    font-size: 32px;
    font-weight: 700;
    color: #999;
    line-height: 1;
    text-align: center;
}


.lotto-ball {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.color-yellow {
    background: #fbc400;
}

.color-blue {
    background: #69c8f2;
}

.color-red {
    background: #ff7272;
}

.color-gray {
    background: #aaa;
}

.color-green {
    background: #b0d840;
}

.lotto-labels {
    display: flex;
    justify-content: center;
    gap: 160px;
    margin-top: 16px;
    color: #444;
    font-size: 14px;
}

.recommend-box {
    background: #fff;
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    margin-bottom: 20px;
}

.recommend-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.recommend-game {
    margin-bottom: 18px;
}

.recommend-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.recommend-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.recommend-ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.recommend-ball.main {
    outline: 3px solid #ff4d00;
    background: #fff;
    color: #ff4d00;
}

.count-badge {
    margin-top: 6px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #e5e7eb;
    color: #333;
}

.hot .count-badge {
    background: #ffe4e6;
    color: #c1121f;
}

/* ===== 당첨금 정보 ===== */
.lotto-prize-info {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: 18px;
    background: #f9fafb;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.lotto-prize-info .prize-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.lotto-prize-info .label {
    color: #555;
    font-weight: 600;
}

.lotto-prize-info .value {
    font-weight: 800;
    color: #111;
}

.percent-badge {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.super-hot .percent-badge {
    color: #fff;
}

.hot .percent-badge {
    color: #c1121f;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

thead {
    background: linear-gradient(135deg, #ff4d00, #ff7a18);
    color: #fff;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    font-size: 15px;
}

th {
    font-weight: 700;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: #fff7f2;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #ffe4d5;
    color: #ff4d00;
}

.addr {
    color: #555;
    font-size: 14px;
}

.count {
    margin-bottom: 10px;
    text-align: right;
    color: #666;
    font-size: 14px;
}

/* ===============================
   네이버 스타일 상단 메뉴바
=============================== */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
    scrollbar-width: none;
    /* Firefox */
    margin-top: -10px;
}

.nav-menu::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.nav-item {
    position: relative;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-item.active {
    color: #03c75a;
    /* 네이버 그린 */
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #03c75a;
    border-radius: 3px;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #03c75a;
    border-radius: 3px;

    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-item.active::after {
    transform: scaleX(1);
}


@media (max-width: 600px) {

    th,
    td {
        font-size: 14px;
        padding: 12px 10px;
    }

    h1 {
        font-size: 20px;
    }
}

.pagination {
    margin-top: 24px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.pagination a:hover,
.pagination a.active {
    background: #ff4d00;
    color: #fff;
}

/* 구분 배지 */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.type-badge.auto {
    background: #e0f2fe;
    color: #0369a1;
}

.type-badge.manual {
    background: #ffe4d5;
    color: #ff4d00;
}

/* 판매점명 말풍선 */
.store-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffe4d5;
    color: #ff4d00;
    font-weight: 700;
    font-size: 14px;
}


.map-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ff4d00;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.map-btn:hover {
    opacity: .9;
}


/* =========================
   📱 모바일 당첨번호 화면 넘침 해결
========================= */
@media(max-width:1024px) {
    .numbers {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media(max-width:600px) {
    .lotto-ball {
        width: 44px;
        height: 44px;
        font-size: 16px
    }

    .lotto-labels {
        gap: 90px
    }

    .recommend-ball {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .numbers {
        grid-template-columns: repeat(3, 1fr);
    }

    .ball {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .lotto-title input[name="round"] {
        font-size: 22px !important;
        width: 70px !important;
    }

    form select {
        font-size: 22px !important;
    }

    form span {
        font-size: 22px !important;
    }
}

@media (max-width: 768px) {

    .lotto-numbers-wrap {
        display: flex;
        /* grid → flex */
        flex-direction: column;
        /* 세로 정렬 */
        gap: 12px;
        align-items: center;
    }

    .lotto-card {
        display: grid;
        /* flex → grid */
        grid-template-columns: repeat(3, 1fr);
        /* ⭐ 가로 3개 */
        gap: 12px;
        justify-items: center;
        padding: 14px;
        border-radius: 16px;
    }

    .lotto-ball {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    .lotto-plus {
        display: none;
        /* 모바일에선 + 제거 */
    }

    /* 박스 자체 여백 */
    .box h2 {
        font-size: 22px !important;
        margin-bottom: 18px;
    }

    /* 게임 카드 */
    .game {
        position: relative;
        background: linear-gradient(135deg, #ffffff, #f8fafc);
        color: #111;
        border-radius: 20px;
        padding: 20px 16px 18px;
        margin-bottom: 18px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    }

    /* "게임 n" → 뱃지화 */
    .game::before {
        content: attr(data-game);
    }

    .game {
        font-size: 0;
        /* 기존 텍스트 숨김 효과 */
    }

    .game::after {
        content: "GAME";
        position: absolute;
        top: 14px;
        left: 16px;
        font-size: 11px;
        letter-spacing: 1px;
        color: #9ca3af;
        font-weight: 700;
    }

    .game span,
    .game:before {
        display: none;
    }

    /* 번호 영역 */
    .balls {
        margin-top: 18px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        justify-items: center;
    }

    /* 공 기본 */
    .ball {
        width: 56px !important;
        height: 56px !important;
        font-size: 20px !important;
        font-weight: 800;
        border-radius: 50%;
        box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
    }

    /* 핵심 추천 번호 (front) */
    .ball.front {
        background: linear-gradient(135deg, #ff4d00, #ff7a18) !important;
        color: #fff !important;
        outline: none !important;
        transform: scale(1.12);
        box-shadow: 0 8px 20px rgba(255, 77, 0, .45);
        position: relative;
    }

    /* front에 별 아이콘 느낌 */
    .ball.front::after {
        content: "★";
        position: absolute;
        top: -8px;
        right: -6px;
        font-size: 14px;
        color: #ffd700;
    }

    .wrap table,
    .wrap thead,
    .wrap tbody,
    .wrap th,
    .wrap td,
    .wrap tr {
        display: block;
    }

    /* 헤더 숨김 */
    .wrap thead {
        display: none;
    }

    .wrap tr {
        background: #fff;
        border-radius: 16px;
        margin-bottom: 16px;
        padding: 14px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    }

    /* 번호, 구분 숨김 */
    .wrap td:nth-child(1),
    .wrap td:nth-child(2) {
        display: none;
    }

    /* 판매점명 */
    .wrap td:nth-child(3) {
        font-size: 16px;
        font-weight: 800;
        color: #111;
        margin-bottom: 6px;
    }

    /* 주소 */
    .wrap td:nth-child(4) {
        font-size: 14px;
        color: #555;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* 지도 버튼 */
    .wrap td:nth-child(5) {
        text-align: center;
    }

    .map-btn {
        width: 100%;
        padding: 10px 0;
        font-size: 14px;
        border-radius: 12px;
    }
}

/* =========================
               전체 레이아웃
            ========================= */
.recomm-roulette-wrap {
    display: flex;
    width: 100%;
    max-width: 1400px;
    /* 전체 화면 기준 */
    margin: 30px auto;
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 좌 / 우 영역 */
.recomm-area,
.roulette-area {
    width: 50%;
    box-sizing: border-box;
}


/* =========================
               모바일에서는 100% 너비
            ========================= */
@media (max-width: 768px) {
    .recomm-roulette-wrap {
        flex-direction: column;
        gap: 20px;
    }

    .recomm-area,
    .roulette-area {
        width: 100%;
    }

    .roulette-wrap {
        max-width: 100%;
    }
}

/* =========================
               룰렛 디자인 (기존 유지)
            ========================= */
.roulette-wrap {
    width: 100%;
    max-width: none;
    /* 제한 제거 */
    margin: 0;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f3f3f3);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}


.roulette-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.roulette-box {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.roulette-number {
    width: 120px;
    height: 120px;
    line-height: 120px;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
    border-radius: 50%;
    box-shadow:
        inset -8px -8px 15px rgba(0, 0, 0, 0.2),
        inset 8px 8px 15px rgba(255, 255, 255, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.25);
}

.roulette-btn {
    margin-top: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #339af0, #1864ab);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.roulette-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.roulette-btn:active {
    transform: scale(0.97);
}


/* =========================
           공(ball) 공통
        ========================= */
.ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 34px;
    height: 34px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    border-radius: 50%;
    color: #fff;
    margin: 0 3px;
}

/* 번호 색상 */
.ball.color-yellow {
    background: #f59f00;
}

.ball.color-blue {
    background: #339af0;
}

.ball.color-red {
    background: #fa5252;
}

.ball.color-gray {
    background: #868e96;
}

.ball.color-green {
    background: #40c057;
}

.ball.bonus {
    background: #e03131;
}

/* 번호 줄바꿈 방지 */
.lotto-history-table .nums {
    white-space: nowrap;
}

/* =========================
           모바일 카드형 반응형
        ========================= */
@media (max-width: 768px) {

    /* 테이블 헤더 숨김 */
    .lotto-history-table thead {
        display: none;
    }

    .lotto-history-table,
    .lotto-history-table tbody,
    .lotto-history-table tr,
    .lotto-history-table td {
        display: block;
        width: 100%;
    }

    .lotto-history-table tr {
        margin-bottom: 16px;
        padding: 16px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .lotto-history-table td {
        border: none;
        padding: 8px 0;
        text-align: left;
        font-size: 14px;
    }

    /* 회차 */
    .lotto-history-table td:nth-child(1) {
        font-size: 16px;
        font-weight: 700;
        color: #212529;
        /* 검정 */
        margin-bottom: 6px;
    }

    /* 당첨번호 중앙 정렬 */
    .lotto-history-table td:nth-child(2) {
        text-align: center;
        margin: 12px 0;
    }

    /* 당첨금 라벨 */
    .lotto-history-table td:nth-child(3)::before {
        content: "1등 당첨금: ";
        font-weight: 600;
        color: #495057;
    }

    /* 당첨자 수 라벨 */
    .lotto-history-table td:nth-child(4)::before {
        content: "1등 당첨자 수: ";
        font-weight: 600;
        color: #495057;
    }

    /* ✅ 1등 세금제한 금액 (추가된 핵심) */
    .lotto-history-table td:nth-child(4)::before {
        content: "세금 공제 후: ";
        font-weight: 600;
        color: #495057;
    }

    /* 페이징 터치 영역 확대 */
    .pagination .page-link {
        padding: 10px 16px;
        font-size: 15px;
    }

    /* 당첨번호 영역 가로 넘침 방지 */
    .lotto-history-table td:nth-child(2) {
        overflow-x: auto;
        /* ← 핵심 */
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* 스크롤바 보기 좋게 */
    .lotto-history-table td:nth-child(2)::-webkit-scrollbar {
        height: 4px;
    }

    .lotto-history-table td:nth-child(2)::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 4px;
    }
}

/* =========================
           페이징 반응형 처리
        ========================= */
.pagination {
    flex-wrap: wrap;
    /* 줄바꿈 허용 */
    gap: 6px;
}

.pagination .page-link {
    min-width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    color: #343a40;
    border: 1px solid #dee2e6;
    background: #fff;

    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    background: #f1f3f5;
}

/* 활성 페이지 */
.pagination .page-item.active .page-link {
    background: #339af0;
    border-color: #339af0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(51, 154, 240, 0.35);
}

/* 비활성 */
.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
}

/* =========================
           모바일 전용
        ========================= */
@media (max-width: 768px) {

    .pagination {
        justify-content: center;
        row-gap: 10px;
    }

    .pagination .page-link {
        min-width: 42px;
        height: 42px;
        font-size: 15px;
    }
}

.ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 700;
}

.ball.front {
    background: #ffffff;
    border: 3px solid #339af0;
    color: #339af0;
    /* ← 핵심 */
}

/* =========================
   빈도 추천 박스 디자인
========================= */
.frequency-box {
    margin-top: 30px;
    padding: 24px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

/* 제목 */
.frequency-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.frequency-sub {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* 번호 영역 */
.frequency-balls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 번호 강조 */
.frequency-ball {
    width: 54px;
    height: 54px;
    line-height: 54px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow:
        inset -4px -4px 8px rgba(0, 0, 0, 0.15),
        inset 4px 4px 8px rgba(255, 255, 255, 0.2),
        0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

/* 살짝 뜨는 효과 */
.frequency-ball:hover {
    transform: translateY(-3px) scale(1.05);
}

/* =========================
   모바일 최적화
========================= */
@media (max-width: 768px) {
    .frequency-ball {
        width: 46px;
        height: 46px;
        line-height: 46px;
        font-size: 18px;
    }

    .frequency-title {
        font-size: 18px;
    }
}


.recomm-refresh-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #339af0, #1864ab);
    color: #fff;
}

.recomm-refresh-btn:hover {
    opacity: 0.9;
}

.table-scroll-x {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* 모바일 부드러운 스와이프 */
}

.frequency-table {
    min-width: 600px;
    /* 중요: 가로 스크롤이 생기게 하는 포인트 */
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}


.frequency-table th,
.frequency-table td {
    padding: 12px 10px;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    /* 글자 줄바꿈 방지 */
    color: #000;
}

.frequency-table thead th {
    background: #339af0;
    font-weight: 700;
}

.table-scroll-x::after {
    content: "← 좌우로 밀어보세요 →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #868e96;
    padding: 6px 0;
}

.lotto-history-table td {
    text-align: center;
}

/* ===============================
               모바일 카드형 레이아웃
            ================================ */
@media (max-width: 768px) {
    .recomm-roulette-wrap {
        padding: 0;
    }

    /* 테이블 해체 */
    .lotto-history-table,
    .lotto-history-table thead,
    .lotto-history-table tbody,
    .lotto-history-table tr,
    .lotto-history-table td {
        display: block;
        width: 100%;
    }

    .lotto-history-table tr {
        margin-bottom: 16px;
        padding: 14px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        border: none;
    }

    /* 각 셀 */
    .lotto-history-table td {
        text-align: left;
        padding: 6px 0;
        border: none;
        font-size: 13px;
    }

    /* 회차 */
    .lotto-history-table td:first-child {
        font-size: 15px;
        font-weight: 800;
        color: #000 !important;
        margin-bottom: 8px;
    }

    /* 당첨번호 */
    .nums {
        display: flex;
        flex-wrap: wrap;
        /* 🔥 줄바꿈 허용 */
        gap: 6px;
        margin: 8px 0;
    }

    .ball {
        width: 32px;
        height: 32px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* 금액 / 세금 / 당첨자 */
    .lotto-history-table td:nth-child(3),
    .lotto-history-table td:nth-child(4),
    .lotto-history-table td:nth-child(5) {
        display: flex;
        justify-content: space-between;
        font-weight: 600;
    }

    .lotto-history-table td:nth-child(3)::before {
        content: "1등 당첨금";
        color: #666;
    }

    .lotto-history-table td:nth-child(4)::before {
        content: "실수령액";
        color: #666;
    }

    .lotto-history-table td:nth-child(5)::before {
        content: "당첨자 수";
        color: #666;
    }
}

.recomm-refresh-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #4dabf7, #1864ab);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.recomm-refresh-btn:hover {
    opacity: 0.9;
}
