/* =====================================================
   게임온(GAME-ON) 전체 스타일시트
   - Blue theme / 반응형
   ===================================================== */

:root {
    --blue: #2280ff;
    --blue-dark: #1b6fe0;
    --blue-light: #eaf3ff;
    --green: #00b26a;
    --red: #f0433a;
    --orange: #ff8a00;
    --text: #2e2e2e;
    --text-light: #767676;
    --border: #e5e8ec;
    --bg: #f5f7fa;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; vertical-align: middle; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------------- 상단 유틸 바 ---------------- */
.topbar { background: #fff; border-bottom: 1px solid var(--border); font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar-slogan { color: var(--text-light); }
.topbar-right a { margin-left: 14px; color: #555; }
.topbar-right a:hover { color: var(--blue); }
.topbar-nick { color: var(--text); }
.topbar-nick strong { color: var(--blue); }
.topbar-mileage { background: var(--blue-light); padding: 2px 8px; border-radius: 10px; }
.topbar-mileage strong { color: var(--blue); }
.topbar-admin { color: var(--red) !important; font-weight: bold; }

/* ---------------- 헤더 ---------------- */
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; color: var(--text); }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #2280ff, #00c6ff);
    color: #fff; font-size: 24px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(34, 128, 255, .3);
}
.logo-text { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.logo-text em { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: var(--blue); letter-spacing: 2px; }

.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search form { display: flex; position: relative; }
.header-search input {
    flex: 1; height: 44px; padding: 0 100px 0 18px;
    border: 2px solid var(--blue); border-radius: 24px;
    outline: none; font-size: 14px;
}
.header-search input:focus { box-shadow: 0 0 0 3px rgba(34, 128, 255, .15); }
.search-btn {
    position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 22px;
    background: var(--blue); color: #fff; border: none; border-radius: 20px;
    font-weight: 700; font-size: 14px;
}
.search-btn:hover { background: var(--blue-dark); }

.search-suggest {
    position: absolute; top: 50px; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12); overflow: hidden;
}
.search-suggest .sg-title { padding: 10px 16px 4px; font-size: 12px; color: var(--text-light); }
.search-suggest a { display: block; padding: 9px 16px; font-size: 13px; border-top: 1px solid #f2f4f6; }
.search-suggest a:hover { background: var(--blue-light); }
.search-suggest a .sg-kind { font-size: 11px; color: var(--blue); margin-right: 6px; }
.search-suggest .sg-empty { padding: 14px 16px; font-size: 13px; color: var(--text-light); }

.header-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-header {
    height: 40px; padding: 0 20px; border-radius: 20px;
    display: inline-flex; align-items: center; font-weight: 700; font-size: 14px;
}
.btn-sell { background: var(--blue); color: #fff !important; }
.btn-sell:hover { background: var(--blue-dark); }
.btn-charge { background: #fff; color: var(--blue) !important; border: 1px solid var(--blue); }
.btn-charge:hover { background: var(--blue-light); }

/* ---------------- 메인 네비게이션 ---------------- */
.gnb { background: #fff; border-bottom: 2px solid var(--blue); }
.gnb-inner { display: flex; }
.gnb-inner a {
    padding: 13px 24px; font-size: 15px; font-weight: 700; color: var(--text);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.gnb-inner a:hover, .gnb-inner a.on { color: var(--blue); border-bottom-color: var(--blue); }

.main { min-height: 60vh; padding-bottom: 50px; }

/* ---------------- 홈 히어로 ---------------- */
.hero {
    background: linear-gradient(135deg, #1b6fe0 0%, #2280ff 55%, #00b4ff 100%);
    padding: 72px 0 64px; color: #fff; text-align: center; position: relative; overflow: hidden;
}
/* 히어로 배경 슬라이드 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slide {
    position: absolute; inset: 0; display: block;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.1s ease;
}
.hero-bg-slide.on { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(135deg, rgba(20, 84, 190, .78) 0%, rgba(34, 128, 255, .68) 55%, rgba(0, 150, 220, .62) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-dots { position: relative; z-index: 2; margin-top: 26px; }
.hero-badge {
    display: inline-block; background: rgba(255, 255, 255, .18);
    padding: 5px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.hero-search { max-width: 560px; margin: 0 auto; position: relative; }
.hero-search form { display: flex; }
.hero-search input {
    flex: 1; height: 54px; padding: 0 120px 0 24px;
    border: none; border-radius: 30px; font-size: 16px; outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.hero-search .search-btn {
    height: 44px; top: 5px; right: 5px; padding: 0 30px; font-size: 15px; border-radius: 24px;
    background: #182430;
}
.hero-search .search-btn:hover { background: #000; }
.hero-stats { margin-top: 18px; font-size: 14px; opacity: .95; }
.hero-stats strong { font-size: 18px; }

/* ---------------- 홈 섹션 공통 ---------------- */
.section { padding: 40px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.section-title .sub { font-size: 13px; font-weight: 400; color: var(--text-light); margin-left: 8px; }
.section-more { font-size: 13px; color: var(--text-light); }
.section-more:hover { color: var(--blue); }

/* ---------------- 인기게임 TOP10 (이미지 카드형) ---------------- */
.hot-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hot-game {
    position: relative; display: block; border-radius: 14px; overflow: hidden;
    height: 0; padding-top: 106%; background: #dde3ea;
    box-shadow: 0 2px 8px rgba(15, 30, 60, .08);
    transition: transform .2s, box-shadow .2s;
}
.hot-game:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(34, 128, 255, .28); }
.hot-game-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .35s ease;
}
.hot-game:hover .hot-game-img { transform: scale(1.07); }
.hot-game::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
    pointer-events: none;
}
.hot-game-name {
    position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2;
    color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-game-cnt {
    position: absolute; top: 9px; right: 9px; z-index: 2;
    background: rgba(0, 0, 0, .52); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px;
}
.hot-game-rank {
    position: absolute; top: 9px; left: 9px; z-index: 2;
    width: 24px; height: 24px; border-radius: 8px;
    background: rgba(0, 0, 0, .52); color: #fff;
    font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.hot-game:nth-child(1) .hot-game-rank { background: #ffb400; }
.hot-game:nth-child(2) .hot-game-rank { background: #9aa7b4; }
.hot-game:nth-child(3) .hot-game-rank { background: #c98a4b; }

/* ---------------- 물품 테이블 ---------------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card-pad { padding: 24px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
    background: #f8fafc; padding: 12px 10px; font-size: 13px; color: #555;
    border-bottom: 1px solid var(--border); text-align: left; font-weight: 700;
}
.table td { padding: 13px 10px; border-bottom: 1px solid #f2f4f6; font-size: 13px; vertical-align: middle; }
.m-date { display: none; }
.table tr:hover td { background: #fafcff; }
.table tr:last-child td { border-bottom: none; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag-sell { background: #e7f0ff; color: var(--blue); }
.tag-buy { background: #ffeae7; color: var(--red); }
.tag-cat { background: #f0f2f5; color: #555; }
.tag-status-on { background: #e5f9f0; color: var(--green); }
.tag-status-reserve { background: #fff4e0; color: var(--orange); }
.tag-status-done { background: #f0f2f5; color: #888; }
.tag-status-cancel { background: #ffeaea; color: var(--red); }

.price { font-weight: 900; color: var(--blue); font-size: 15px; }
.price small { font-weight: 400; font-size: 11px; color: var(--text-light); }

.empty-box { padding: 60px 20px; text-align: center; color: var(--text-light); font-size: 14px; }
.empty-box .icon { font-size: 40px; display: block; margin-bottom: 10px; }

/* ---------------- 홈 하단 (공지+가이드) ---------------- */
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.notice-list li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f2f4f6; list-style: none; font-size: 13px; }
.notice-list li:last-child { border-bottom: none; }
.notice-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list .date { color: var(--text-light); font-size: 12px; flex-shrink: 0; margin-left: 10px; }
.notice-list .important { color: var(--red); font-weight: 700; margin-right: 5px; }

.guide-banner {
    background: linear-gradient(135deg, #182430, #2c3e50); border-radius: 14px;
    color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.guide-banner h3 { font-size: 18px; font-weight: 900; }
.guide-banner p { font-size: 13px; opacity: .8; }
.guide-banner .btn { align-self: flex-start; margin-top: 6px; }

/* ---------------- 버튼 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 22px; border-radius: 8px;
    font-size: 14px; font-weight: 700; border: none; background: var(--blue); color: #fff;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 10px; padding: 0 34px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; border: 1px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-gray { background: #eef1f4; color: #555; }
.btn-gray:hover { background: #e2e6ea; color: var(--text); }
.btn-red { background: var(--red); }
.btn-red:hover { background: #d63329; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #009a5c; }
.btn:disabled, .btn.disabled { background: #c9d2dc; cursor: not-allowed; color: #fff; }

/* ---------------- 페이지 타이틀 ---------------- */
.page-head { padding: 30px 0 20px; }
.page-head h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.page-head .desc { color: var(--text-light); font-size: 13px; margin-top: 4px; }
.breadcrumb { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-light); }

/* ---------------- 폼 ---------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid #d9dee4; border-radius: 8px; outline: none;
    background: #fff; transition: border .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34, 128, 255, .12); }
.form-textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.form-help { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-input, .form-row .form-select { flex: 1; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.form-check input { margin-top: 4px; }

.input-group { display: flex; gap: 8px; }
.input-group .form-input { flex: 1; }

/* ---------------- 로그인/회원가입 ---------------- */
.auth-wrap { max-width: 420px; margin: 50px auto; }
.auth-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-title { font-size: 22px; font-weight: 900; text-align: center; margin-bottom: 24px; letter-spacing: -0.5px; }
.auth-links { display: flex; justify-content: center; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--text-light); }
.auth-links a:hover { color: var(--blue); }
.captcha-box { display: flex; align-items: center; gap: 10px; }
.captcha-q {
    background: var(--blue-light); color: var(--blue); font-weight: 900;
    padding: 10px 16px; border-radius: 8px; white-space: nowrap; font-size: 15px;
}

/* ---------------- 게임 목록 (초성) ---------------- */
.initial-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.initial-tab {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
    background: #fff; border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: #555;
}
.initial-tab:hover { border-color: var(--blue); color: var(--blue); }
.initial-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game-item {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; font-size: 14px; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    transition: all .15s;
}
.game-item:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 4px 12px rgba(34, 128, 255, .1); }
.game-item .g-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-item .g-badge { font-size: 10px; color: var(--red); font-weight: 900; flex-shrink: 0; }

/* ---------------- 게임 상세 / 물품 목록 ---------------- */
.game-detail-head {
    background: linear-gradient(135deg, #1b6fe0, #2280ff);
    border-radius: 14px; color: #fff; padding: 30px;
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.game-detail-head h2 { font-size: 26px; font-weight: 900; }
.game-detail-head .g-sub { opacity: .85; font-size: 13px; margin-top: 4px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter-tab {
    padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
    background: #fff; border: 1px solid var(--border); color: #555;
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 물품 상세 ---------------- */
.product-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.product-info-row { display: flex; padding: 14px 0; border-bottom: 1px solid #f2f4f6; font-size: 14px; }
.product-info-row .lb { width: 110px; color: var(--text-light); flex-shrink: 0; }
.product-content { padding: 20px 0; font-size: 14px; line-height: 1.8; min-height: 160px; white-space: pre-wrap; }

.side-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.side-box + .side-box { margin-top: 14px; }
.side-price { font-size: 26px; font-weight: 900; color: var(--blue); }
.side-price small { font-size: 13px; color: var(--text-light); font-weight: 400; }
.seller-box { display: flex; align-items: center; gap: 12px; }
.seller-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #2280ff, #00c6ff);
    color: #fff; font-size: 20px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.seller-nick { font-weight: 900; font-size: 15px; }
.seller-meta { font-size: 12px; color: var(--text-light); }

.grade { display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 11px; font-weight: 900; }
.grade-bronze { background: #f4e3d4; color: #a05a1e; }
.grade-silver { background: #eceff3; color: #5f6b7a; }
.grade-gold { background: #fff0c8; color: #b8860b; }
.grade-vip { background: #2c3e50; color: #ffd700; }

/* ---------------- 마이룸 ---------------- */
.myroom { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.myroom > div, .admin-wrap > div { min-width: 0; }
.myroom-side { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.myroom-profile { padding: 22px; text-align: center; background: linear-gradient(135deg, #1b6fe0, #2280ff); color: #fff; }
.myroom-profile .avatar {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
    background: rgba(255, 255, 255, .2); font-size: 28px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.myroom-profile .nick { font-size: 16px; font-weight: 900; }
.myroom-profile .m-mileage { margin-top: 8px; font-size: 13px; background: rgba(255,255,255,.15); border-radius: 16px; padding: 5px 12px; display: inline-block; }
.myroom-menu { padding: 10px 0; }
.myroom-menu .menu-group { padding: 8px 18px 4px; font-size: 11px; color: var(--text-light); font-weight: 700; }
.myroom-menu a { display: block; padding: 9px 18px; font-size: 13px; color: #444; border-left: 3px solid transparent; }
.myroom-menu a:hover { background: var(--blue-light); color: var(--blue); }
.myroom-menu a.on { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); font-weight: 700; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.stat-card .num { font-size: 24px; font-weight: 900; color: var(--blue); }
.stat-card .num.red { color: var(--red); }
.stat-card .num.green { color: var(--green); }
.stat-card .lb { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ---------------- 마일리지 충전 ---------------- */
.charge-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.bank-info {
    background: var(--blue-light); border: 1px solid #cfe3ff; border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
}
.bank-info .bank-name { font-size: 15px; font-weight: 900; color: var(--blue); }
.bank-info .bank-account { font-size: 22px; font-weight: 900; letter-spacing: 1px; margin: 6px 0; }
.bank-info .bank-holder { font-size: 13px; color: #555; }
.amount-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.amount-btn {
    height: 44px; border: 1px solid var(--border); border-radius: 8px;
    background: #fff; font-weight: 700; font-size: 13px; color: #555;
}
.amount-btn:hover { border-color: var(--blue); color: var(--blue); }
.amount-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 거래 상세 / 메시지 ---------------- */
.order-status-banner {
    border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 20px;
    font-weight: 900; font-size: 17px;
}
.order-status-banner.WAIT { background: var(--blue-light); color: var(--blue); }
.order-status-banner.CANCEL_REQ { background: #fff4e0; color: var(--orange); }
.order-status-banner.DONE { background: #e5f9f0; color: var(--green); }
.order-status-banner.CANCEL { background: #ffeaea; color: var(--red); }

.msg-list { max-height: 360px; overflow-y: auto; padding: 16px; background: #f8fafc; border-radius: 12px; }
.msg-item { margin-bottom: 12px; display: flex; flex-direction: column; }
.msg-item .bubble {
    max-width: 75%; padding: 10px 14px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border); font-size: 13px;
}
.msg-item .who { font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
.msg-item.mine { align-items: flex-end; }
.msg-item.mine .bubble { background: var(--blue); border-color: var(--blue); color: #fff; }

.contact-reveal {
    background: #fffbe8; border: 1px solid #ffe9a8; border-radius: 10px;
    padding: 14px; font-size: 13px; margin-bottom: 16px;
}

/* ---------------- 페이지네이션 ---------------- */
.pagination { display: flex; justify-content: center; gap: 4px; padding: 20px 0; }
.page-num, .page-btn {
    min-width: 34px; height: 34px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px; background: #fff;
    font-size: 13px; color: #555;
}
.page-num.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.page-num:hover, .page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-num.on:hover { color: #fff; }

/* ---------------- 정책 페이지 ---------------- */
.policy-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px; font-size: 13px; line-height: 1.9; }
.policy-box h3 { font-size: 16px; font-weight: 900; margin: 24px 0 8px; color: var(--blue); }
.policy-box h3:first-child { margin-top: 0; }

/* ---------------- 이용안내 스텝 ---------------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-align: center; }
.step-num {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
    background: var(--blue-light); color: var(--blue); font-size: 18px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.step-box h4 { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.step-box p { font-size: 12px; color: var(--text-light); }

/* ---------------- 푸터 ---------------- */
.footer { background: #182430; color: #8b98a8; padding: 36px 0 30px; margin-top: 40px; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 18px; border-bottom: 1px solid #2a3644; margin-bottom: 18px; }
.footer-links a { font-size: 13px; color: #b9c4d0; }
.footer-links a:hover { color: #fff; }
.footer-links a strong { color: #fff; }
.footer-info { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.footer-company p { line-height: 1.9; }
.footer-company strong { color: #dbe4ee; font-size: 14px; }
.footer-cs-box {
    background: #222f3d; border-radius: 12px; padding: 18px 22px;
    display: flex; flex-direction: column; gap: 3px; min-width: 220px;
}
.footer-cs-box strong { color: #dbe4ee; }
.cs-phone { font-size: 20px; font-weight: 900; color: var(--blue); }
.footer-disclaimer { padding-top: 14px; border-top: 1px solid #2a3644; line-height: 1.8; }
.footer-copy { margin-top: 8px; color: #5c6b7c; }

/* ---------------- 관리자 ---------------- */
.admin-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.admin-side { background: #182430; border-radius: 14px; overflow: hidden; }
.admin-side .admin-title { padding: 18px; color: #fff; font-weight: 900; font-size: 15px; border-bottom: 1px solid #2a3644; }
.admin-side a { display: block; padding: 11px 18px; color: #b9c4d0; font-size: 13px; border-left: 3px solid transparent; }
.admin-side a:hover { background: #222f3d; color: #fff; }
.admin-side a.on { background: #222f3d; color: #fff; border-left-color: var(--blue); font-weight: 700; }
.admin-side a .badge-cnt { float: right; background: var(--red); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; line-height: 18px; }

/* ---------------- 반응형 ---------------- */
@media (max-width: 1024px) {
    .hot-games { grid-template-columns: repeat(4, 1fr); }
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .product-wrap { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .amount-btns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .topbar-left { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
    .mobile-menu-btn { display: block; }
    .header-search { order: 3; max-width: none; flex-basis: 100%; }
    .header-btns { display: none; }
    .logo-text { font-size: 18px; }
    .logo-mark { width: 36px; height: 36px; font-size: 20px; }
    .gnb { display: none; }
    .gnb.open { display: block; }
    .gnb-inner { flex-direction: column; padding: 8px 16px; }
    .gnb-inner a { padding: 12px 8px; border-bottom: 1px solid #f2f4f6; }
    .hero { padding: 36px 0; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .hot-games { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .game-grid { grid-template-columns: 1fr 1fr; }
    .home-bottom { grid-template-columns: 1fr; }
    .myroom, .admin-wrap { grid-template-columns: 1fr; }
    .footer-info { flex-direction: column; }
    .card-pad { padding: 16px; }
    .table-scroll { overflow-x: auto; }
    .table { min-width: 640px; }
    .auth-box { padding: 24px; }
    .game-detail-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
    .stat-card { padding: 14px 6px; }
    .stat-card .num { font-size: 17px; letter-spacing: -0.5px; }
    /* 마일리지 내역: 모바일에서 가로스크롤 없이 표시 */
    .table-mileage { min-width: 0; }
    .table-mileage th, .table-mileage td { padding: 10px 8px; font-size: 12px; }
    .table-mileage .col-date { display: none; }
    .table-mileage .num-cell { white-space: nowrap; }
    .m-date { display: block; color: var(--text-light); font-size: 11px; margin-top: 3px; }
}

@media (max-width: 480px) {
    .hot-games { grid-template-columns: repeat(2, 1fr); }
    .hot-game-name { font-size: 13px; left: 10px; right: 10px; bottom: 9px; }
    .hero h1 { font-size: 22px; }
    .hero-search input { height: 48px; padding: 0 104px 0 18px; font-size: 14px; }
    .hero-search .search-btn { height: 38px; padding: 0 20px; font-size: 14px; }
}

/* ---------------- 슬라이드 도트 ---------------- */
.bn-dot {
    display: inline-block; width: 9px; height: 9px; margin: 0 4px;
    border-radius: 50%; background: rgba(255, 255, 255, .55);
    cursor: pointer; transition: all .25s;
}
.bn-dot.on { background: #fff; width: 24px; border-radius: 6px; }

/* ---------------- 관리자 이미지 관리 ---------------- */
.adm-thumb {
    width: 96px; height: 40px; object-fit: cover;
    border-radius: 6px; border: 1px solid var(--border); background: #f4f6f8;
}
.game-icon-sm {
    width: 34px; height: 34px; border-radius: 8px; object-fit: cover;
    vertical-align: middle; margin-right: 8px; border: 1px solid var(--border);
}
.game-icon-sm-txt {
    display: inline-flex; width: 34px; height: 34px; border-radius: 8px;
    align-items: center; justify-content: center; vertical-align: middle; margin-right: 8px;
    background: var(--blue-light); color: var(--blue); font-weight: 900; font-size: 14px;
}
.file-mini { max-width: 150px; height: 30px; font-size: 11px; }
