/* ═══════════════════════════════════════════════
   🍯 꿀슬롯 Design System v1.0
   Dark/Light Theme + Responsive
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables: Dark Theme (default) ─── */
:root, [data-theme="dark"] {
    --bg:          #0D0D0D;
    --bg-alt:      #141420;
    --card:        #1A1A2E;
    --card-hover:  #222240;
    --surface:     #252540;
    --border:      #2A2A45;
    --border-light:#3A3A55;

    --ink:         #F0F0F5;
    --ink-muted:   #9999AA;
    --ink-faint:   #666680;

    --honey:       #FFB800;
    --honey-light: #FFD54F;
    --honey-dark:  #CC9200;
    --honey-glow:  rgba(255,184,0,.15);

    --accent:      #7C5CFC;
    --accent-light:#A78BFA;
    --success:     #22C55E;
    --danger:      #EF4444;
    --warning:     #F59E0B;
    --info:        #3B82F6;

    --radius-sm:   8px;
    --radius:      12px;
    --radius-lg:   16px;
    --radius-xl:   20px;
    --radius-full: 999px;

    --shadow-sm:   0 2px 8px rgba(0,0,0,.3);
    --shadow:      0 4px 16px rgba(0,0,0,.4);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.5);
    --shadow-glow: 0 0 20px rgba(255,184,0,.2);

    --header-bg:   rgba(13,13,13,.85);
    --header-blur: saturate(180%) blur(12px);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
    --bg:          #F5F3EE;
    --bg-alt:      #EEEAE3;
    --card:        #FFFFFF;
    --card-hover:  #FFF9E6;
    --surface:     #F8F6F1;
    --border:      #E0DDD5;
    --border-light:#D0CCC2;

    --ink:         #1A1A2E;
    --ink-muted:   #666680;
    --ink-faint:   #9999AA;

    --honey:       #E5A500;
    --honey-light: #FFB800;
    --honey-dark:  #CC9200;
    --honey-glow:  rgba(229,165,0,.1);

    --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --shadow:      0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
    --shadow-glow: 0 0 20px rgba(229,165,0,.15);

    --header-bg:   rgba(245,243,238,.9);
}

/* ─── Base Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Pretendard Variable', 'Pretendard', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-content { min-height: calc(100vh - 200px); padding: 24px 0; }

/* ═══════════ HEADER ═══════════ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease;
}
.header-row {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 20px; max-width: 1200px; margin: 0 auto;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 38px; width: auto; }

/* Nav */
.main-nav {
    display: flex; align-items: center; gap: 4px;
    margin-left: 24px; flex: 1;
}
.nav-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600; color: var(--ink-muted);
    transition: all .2s ease; white-space: nowrap;
}
.nav-item:hover { color: var(--honey); background: var(--honey-glow); }
.nav-item.active { color: var(--honey); background: var(--honey-glow); }
.nav-icon { width: 18px; height: 18px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.user-points {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: var(--honey-glow); border: 1px solid var(--honey);
    font-weight: 700; font-size: 14px;
}
.pts-icon { width: 16px; height: 16px; color: var(--honey); }
.pts-value { color: var(--honey); }
.pts-label { color: var(--honey-dark); font-size: 12px; }

/* User Dropdown */
.user-dropdown { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius-full);
    background: var(--surface); border: 1px solid var(--border);
    transition: all .2s;
}
.user-btn:hover { border-color: var(--honey); }
.user-avatar {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--honey), var(--accent));
    color: #fff; font-weight: 800; font-size: 14px;
}
.user-avatar.lg { width: 44px; height: 44px; font-size: 18px; }
.user-nick { font-weight: 600; font-size: 14px; }
.dd-arrow { width: 16px; height: 16px; color: var(--ink-muted); transition: transform .2s; }
.user-dropdown.open .dd-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 180px; padding: 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .2s ease;
}
.user-dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--ink-muted);
    transition: all .15s;
}
.dropdown-menu a:hover { background: var(--honey-glow); color: var(--honey); }
.dropdown-menu a [data-lucide] { width: 16px; height: 16px; }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Theme Toggle */
.theme-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    transition: all .2s;
}
.theme-toggle:hover { border-color: var(--honey); background: var(--honey-glow); }
.theme-icon-light, .theme-icon-dark { width: 18px; height: 18px; }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: block; color: var(--honey); }
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: block; color: var(--accent); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; width: 38px; height: 38px;
    border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
    place-items: center; color: var(--ink);
}
.mobile-menu-btn [data-lucide] { width: 20px; height: 20px; }

/* ════════ MOBILE SIDEBAR ════════ */
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 1500; opacity: 0; visibility: hidden;
    transition: all .3s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: var(--card); border-left: 1px solid var(--border);
    z-index: 1600; overflow-y: auto;
    transition: right .3s cubic-bezier(.4,0,.2,1);
}
.mobile-sidebar.open { right: 0; }

.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.sidebar-logo { height: 30px; }
.sidebar-close {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--ink);
}
.sidebar-close [data-lucide] { width: 18px; height: 18px; }

.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding: 20px; border-bottom: 1px solid var(--border);
}
.sidebar-user strong { display: block; font-size: 16px; }
.pts-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--honey); font-weight: 600; margin-top: 2px;
}
.pts-badge [data-lucide] { width: 14px; height: 14px; }

.sidebar-nav { padding: 12px; }
.sidebar-nav a {
    display: block; padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 500; color: var(--ink-muted);
    transition: all .15s;
}
.sidebar-nav a:hover { background: var(--honey-glow); color: var(--honey); }
.sidebar-nav hr { border: none; border-top: 1px solid var(--border); margin: 8px 16px; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--ink);
    transition: all .2s ease; white-space: nowrap;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary {
    background: linear-gradient(135deg, var(--honey), var(--honey-dark));
    color: #000; border-color: transparent; font-weight: 700;
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--honey); color: var(--honey); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-success { background: var(--success); color: #fff; border-color: transparent; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn [data-lucide] { width: 16px; height: 16px; }

/* ═══════════ CARDS ═══════════ */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: all .2s ease; overflow: hidden;
}
.card:hover { border-color: var(--border-light); }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-header h2, .card-header h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700;
}
.card-header h2 [data-lucide], .card-header h3 [data-lucide] { width: 20px; height: 20px; color: var(--honey); }
.card-body { padding: 20px; }
.card-body.no-pad { padding: 0; }

/* ═══════════ FORMS ═══════════ */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 8px; color: var(--ink);
}
.form-input {
    width: 100%; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--ink);
    font-size: 15px; transition: all .2s;
}
.form-input:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px var(--honey-glow); }
.form-input::placeholder { color: var(--ink-faint); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }

/* ═══════════ TABLES ═══════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
.table th {
    text-align: left; padding: 12px 16px;
    background: var(--surface); font-weight: 700; font-size: 13px;
    color: var(--ink-muted); border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--honey-glow); }

/* ═══════════ BADGE ═══════════ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 700;
}
.badge-honey { background: var(--honey-glow); color: var(--honey); }
.badge-success { background: rgba(34,197,94,.15); color: var(--success); }
.badge-danger { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,.15); color: var(--info); }
.badge-purple { background: rgba(124,92,252,.15); color: var(--accent); }

/* ═══════════ PAGINATION ═══════════ */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.pg-btn {
    display: grid; place-items: center;
    min-width: 36px; height: 36px; padding: 0 8px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border); color: var(--ink-muted);
    transition: all .15s;
}
.pg-btn:hover { border-color: var(--honey); color: var(--honey); }
.pg-btn.active {
    background: linear-gradient(135deg, var(--honey), var(--honey-dark));
    color: #000; border-color: transparent;
}

/* ═══════════ FLASH MESSAGE ═══════════ */
.flash {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; margin: 0; font-size: 14px; font-weight: 500;
    animation: flashSlide .3s ease;
}
.flash-success { background: rgba(34,197,94,.15); color: var(--success); border-bottom: 2px solid var(--success); }
.flash-error { background: rgba(239,68,68,.15); color: var(--danger); border-bottom: 2px solid var(--danger); }
.flash-warning { background: rgba(245,158,11,.15); color: var(--warning); border-bottom: 2px solid var(--warning); }
.flash-info { background: rgba(59,130,246,.12); color: var(--info); border-bottom: 2px solid var(--info); }
.flash button { background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; opacity: .6; }
@keyframes flashSlide { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
    animation: modalPop .25s ease;
}
@keyframes modalPop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--ink-muted);
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ═══════════ HOME: Jackpot Feed ═══════════ */
.jackpot-ticker {
    background: linear-gradient(90deg, var(--honey-dark), var(--honey), var(--honey-dark));
    color: #000; padding: 10px 0; overflow: hidden; font-weight: 700;
    font-size: 14px;
}
.ticker-track {
    display: flex; gap: 60px; animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 6px; }
.ticker-item .nick { color: #333; }
.ticker-item .amt { font-weight: 800; }

/* ════════ HOME: Hero Section ════════ */
.hero-section {
    padding: 40px 0 32px;
    text-align: center;
}
.hero-title {
    font-size: 32px; font-weight: 900;
    background: linear-gradient(135deg, var(--honey-light), var(--honey), var(--honey-dark));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.hero-sub { font-size: 16px; color: var(--ink-muted); margin-bottom: 24px; }

/* Quick Game Banners */
.quick-games {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-bottom: 32px;
}
.quick-game-card {
    position: relative; padding: 24px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    transition: all .3s ease; cursor: pointer;
    text-align: center;
}
.quick-game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--honey); }
.quick-game-card .game-emoji { font-size: 48px; margin-bottom: 12px; display: block; }
.quick-game-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.quick-game-card p { font-size: 13px; color: var(--ink-muted); }
.qg-baccarat { background: linear-gradient(145deg, #1a0a30, #2d1b4e); }
.qg-roulette { background: linear-gradient(145deg, #0a1a30, #1b2d4e); }
.qg-slot { background: linear-gradient(145deg, #1a2a0a, #2d4e1b); }

/* Rankings Preview */
.rank-podium {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
    margin-bottom: 32px;
}
.podium-card {
    text-align: center; padding: 24px 16px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: var(--card); position: relative;
    transition: all .3s;
}
.podium-card.gold { border-color: #FFD54F; box-shadow: 0 0 20px rgba(255,213,79,.2); }
.podium-card.silver { border-color: #C0C0C0; }
.podium-card.bronze { border-color: #CD7F32; }
.podium-medal { font-size: 40px; margin-bottom: 8px; }
.podium-nick { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.podium-pts { font-size: 14px; color: var(--honey); font-weight: 600; }

/* Section Grid */
.section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ═══════════ BOARD LIST ═══════════ */
.board-nav {
    display: flex; gap: 6px; padding: 16px 0; overflow-x: auto;
    scrollbar-width: none; flex-wrap: wrap;
}
.board-nav::-webkit-scrollbar { display: none; }
.board-chip {
    flex: 0 0 auto; padding: 8px 16px; border-radius: var(--radius-full);
    background: var(--surface); border: 1px solid var(--border);
    font-size: 14px; font-weight: 600; color: var(--ink-muted);
    transition: all .2s; white-space: nowrap;
}
.board-chip:hover, .board-chip.active {
    background: var(--honey-glow); border-color: var(--honey); color: var(--honey);
}

.post-list { }
.post-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.post-row:hover { background: var(--honey-glow); }
.post-row:last-child { border-bottom: none; }
.post-num { width: 40px; text-align: center; font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.post-title-area { flex: 1; min-width: 0; }
.post-title {
    font-size: 15px; font-weight: 600; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    display: block;
}
.post-title:hover { color: var(--honey); }
.post-meta {
    display: flex; gap: 12px; font-size: 12px; color: var(--ink-faint); margin-top: 4px;
}
.post-meta span { display: flex; align-items: center; gap: 3px; }
.post-meta [data-lucide] { width: 12px; height: 12px; }
.post-notice-badge {
    display: inline-flex; padding: 2px 8px; border-radius: var(--radius-full);
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    margin-right: 6px;
}
.post-comment-cnt {
    color: var(--honey); font-weight: 700; font-size: 13px;
    margin-left: 6px;
}

/* ═══════════ POST VIEW ═══════════ */
.post-view-header { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-view-title { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.post-view-info { display: flex; gap: 16px; font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; }
.post-view-info span { display: flex; align-items: center; gap: 4px; }
.post-view-info [data-lucide] { width: 14px; height: 14px; }
.post-view-content { padding: 32px 0; line-height: 1.8; font-size: 15px; min-height: 200px; }
.post-view-content p { margin-bottom: 16px; }

.vote-bar {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.vote-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 24px; border-radius: var(--radius); cursor: pointer;
    border: 1px solid var(--border); background: var(--surface);
    transition: all .2s; min-width: 80px;
}
.vote-btn [data-lucide] { width: 24px; height: 24px; }
.vote-btn .count { font-size: 18px; font-weight: 800; }
.vote-btn.like:hover { border-color: var(--info); color: var(--info); background: rgba(59,130,246,.1); }
.vote-btn.dislike:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,.1); }
.vote-btn.voted.like { border-color: var(--info); color: var(--info); background: rgba(59,130,246,.15); }
.vote-btn.voted.dislike { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,.15); }

/* Comments */
.comment-section { padding: 24px 0; }
.comment-item {
    padding: 16px 0; border-bottom: 1px solid var(--border);
}
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.comment-nick { font-weight: 600; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--ink-faint); }
.comment-body { font-size: 14px; line-height: 1.7; padding-left: 42px; }
.comment-actions {
    display: flex; gap: 12px; padding-left: 42px; margin-top: 8px;
    font-size: 12px; color: var(--ink-faint);
}
.comment-actions button {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--ink-faint);
    cursor: pointer; transition: color .15s;
}
.comment-actions button:hover { color: var(--honey); }

.comment-form { margin-top: 20px; }
.comment-form textarea { min-height: 80px; }
.comment-form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ═══════════ GAME ZONE ═══════════ */
.game-lobby-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.game-card {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--card);
    transition: all .3s ease; cursor: pointer;
    position: relative;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--honey); }
.game-card-thumb {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    background: linear-gradient(145deg, var(--bg-alt), var(--card));
}
.game-card-body { padding: 16px; }
.game-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.game-card-desc { font-size: 13px; color: var(--ink-muted); }
.game-card-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700;
}
.badge-live { background: var(--success); color: #fff; animation: pulseLive 2s infinite; }
.badge-soon { background: var(--ink-faint); color: var(--bg); }
@keyframes pulseLive {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* Game Play Area */
.game-area {
    max-width: 800px; margin: 0 auto;
}
.game-balance {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; background: var(--surface); border-radius: var(--radius);
    margin-bottom: 20px; font-size: 20px; font-weight: 800;
}
.game-balance [data-lucide] { width: 24px; height: 24px; color: var(--honey); }
.game-balance .bal-value { color: var(--honey); }

.bet-controls {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px; background: var(--surface); border-radius: var(--radius);
    margin-top: 16px; flex-wrap: wrap;
}
.bet-input {
    width: 120px; text-align: center; padding: 10px;
    background: var(--bg); border: 2px solid var(--honey);
    border-radius: var(--radius); color: var(--honey);
    font-size: 18px; font-weight: 800;
}
.bet-quick-btn {
    padding: 8px 14px; border-radius: var(--radius-full);
    background: var(--card); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--ink-muted);
    transition: all .15s;
}
.bet-quick-btn:hover { border-color: var(--honey); color: var(--honey); }

/* ═══════════ RANKING ═══════════ */
.rank-board { }
.rank-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.rank-row:hover { background: var(--honey-glow); }
.rank-pos {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 14px;
    background: var(--surface); color: var(--ink-muted);
}
.rank-pos.r1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; animation: pulseLive 2s infinite; }
.rank-pos.r2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.rank-pos.r3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-nick { flex: 1; font-weight: 600; font-size: 15px; }
.rank-score { font-weight: 800; color: var(--honey); font-size: 15px; }

/* ═══════════ EXCHANGE ═══════════ */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all .3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--honey); }
.product-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    background: var(--surface);
}
.product-info { padding: 16px; text-align: center; }
.product-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.product-price {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: var(--radius-full);
    background: var(--honey-glow); color: var(--honey);
    font-weight: 800; font-size: 15px;
}

/* ═══════════ ATTENDANCE ═══════════ */
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-head { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-muted); padding: 8px; }
.cal-day {
    aspect-ratio: 1; display: grid; place-items: center;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    border: 1px solid transparent; transition: all .15s;
    color: var(--ink-muted);
}
.cal-day.today { border-color: var(--honey); color: var(--honey); font-weight: 700; }
.cal-day.checked {
    background: var(--honey-glow); color: var(--honey); font-weight: 700;
    border-color: var(--honey);
}
.cal-day.checked::after { content: '✓'; display: block; font-size: 10px; }
.cal-day.empty { visibility: hidden; }

/* ═══════════ ADMIN ═══════════ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; min-height: calc(100vh - 200px); }
.admin-sidebar {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px; height: fit-content;
    position: sticky; top: 80px;
}
.admin-sidebar a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--ink-muted);
    margin-bottom: 2px; transition: all .15s;
}
.admin-sidebar a:hover { background: var(--honey-glow); color: var(--honey); }
.admin-sidebar a.active { background: var(--honey-glow); color: var(--honey); font-weight: 700; }
.admin-sidebar [data-lucide] { width: 18px; height: 18px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    padding: 20px; border-radius: var(--radius-lg);
    background: var(--card); border: 1px solid var(--border);
}
.stat-card .stat-label { font-size: 13px; color: var(--ink-muted); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; }
.stat-card.honey .stat-value { color: var(--honey); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.info .stat-value { color: var(--info); }

/* ═══════════ AUTH PAGES ═══════════ */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 200px); padding: 40px 20px;
}
.auth-box {
    width: 100%; max-width: 420px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-box .logo-center { text-align: center; margin-bottom: 24px; }
.auth-box .logo-center img { height: 40px; margin: 0 auto; }
.auth-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { text-align: center; font-size: 14px; color: var(--ink-muted); margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--ink-faint); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.auth-link { text-align: center; font-size: 14px; color: var(--ink-muted); margin-top: 20px; }
.auth-link a { color: var(--honey); font-weight: 600; }

/* ═══════════ MYPAGE ═══════════ */
.mypage-header {
    display: flex; align-items: center; gap: 20px;
    padding: 32px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); margin-bottom: 24px;
}
.mypage-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--honey), var(--accent));
    display: grid; place-items: center; color: #fff;
    font-size: 28px; font-weight: 900;
}
.mypage-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.mypage-info .email { font-size: 14px; color: var(--ink-muted); }
.mypage-stats {
    display: flex; gap: 24px; margin-left: auto;
}
.mypage-stat { text-align: center; }
.mypage-stat .val { font-size: 24px; font-weight: 800; color: var(--honey); display: block; }
.mypage-stat .lbl { font-size: 12px; color: var(--ink-muted); }

/* ═══════════ COMING SOON ═══════════ */
.coming-soon {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px; text-align: center;
}
.coming-soon .cs-emoji { font-size: 64px; margin-bottom: 16px; }
.coming-soon h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.coming-soon p { font-size: 15px; color: var(--ink-muted); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: grid; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
    .admin-sidebar a { margin-bottom: 0; }
}

@media (max-width: 768px) {
    .header-row { padding: 10px 16px; }
    .logo-img { height: 32px; }
    .user-nick { display: none; }
    .user-points { padding: 4px 10px; font-size: 13px; }

    .container { padding: 0 16px; }
    .main-content { padding: 16px 0; }

    .hero-title { font-size: 24px; }
    .quick-games { grid-template-columns: 1fr; gap: 12px; }
    .rank-podium { grid-template-columns: 1fr; gap: 12px; }
    .section-grid { grid-template-columns: 1fr; }

    .game-lobby-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .auth-box { padding: 24px; }

    .mypage-header { flex-direction: column; text-align: center; }
    .mypage-stats { margin-left: 0; }

    .post-row { padding: 12px 16px; gap: 8px; }
    .post-num { display: none; }
}

@media (max-width: 480px) {
    .game-lobby-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .vote-bar { gap: 8px; }
    .vote-btn { padding: 12px 16px; }
}

/* ═══════════ UTILITY ═══════════ */
.text-center { text-align: center; }
.text-honey { color: var(--honey); }
.text-muted { color: var(--ink-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
