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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f0f0f;
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* 헤더 */
.header {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.header p {
    color: #666;
    font-size: 14px;
}

/* 유저 바 */
.user-bar {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
}

#userSection {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #222;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    line-height: 1.2;
}

.user-status {
    font-size: 11px;
    line-height: 1.2;
}

.user-status.ok {
    color: #4ade80;
}

.user-status.warning {
    color: #fbbf24;
}

/* 버튼 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #888;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    padding-bottom: 80px;
    flex: 1;
}


.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.game-count {
    font-size: 13px;
    color: #666;
}

/* 게임 그리드 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a, #252525);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #333;
    position: relative;
    overflow: hidden;
}

.game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5) 100%);
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-info {
    padding: 16px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.game-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #444;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #444;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: #666;
}

/* 로딩 */
.loading {
    text-align: center;
    padding: 80px;
    grid-column: 1 / -1;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 13px;
    color: #666;
}

/* 에러 배너 */
.error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 관리자 링크 */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    display: none;
}

.admin-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 푸터 */
.footer {
    padding: 20px;
    text-align: center;
    background: #1a1a2e;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer p {
    font-size: 12px;
    color: #444;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

/* 반응형 */
@media (max-width: 768px) {
    .header {
        padding: 80px 20px 30px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .user-bar {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
