/* Wollu - Simple Games CSS */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f4f9;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.coffee-button {
    padding: 8px 16px;
    background-color: #fd0;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.coffee-button:hover {
    background-color: #ffea60;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.a2hs-button {
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.a2hs-button:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.a2hs-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
}

.a2hs-modal.open {
    display: flex;
}

.a2hs-dialog {
    width: min(560px, 92vw);
    background: #ffffff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.a2hs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.a2hs-title {
    font-weight: 900;
    font-size: 15px;
}

.a2hs-close {
    appearance: none;
    border: 0;
    background: rgba(0,0,0,0.06);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 36px;
}

.a2hs-body {
    padding: 14px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(0,0,0,0.78);
}

.a2hs-body b { color: rgba(0,0,0,0.92); }

.a2hs-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.a2hs-ok {
    appearance: none;
    border: 1px solid rgba(79, 140, 255, 0.35);
    background: rgba(79, 140, 255, 0.12);
    color: #1e3a8a;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

.right-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

#visitor-count {
    color: white;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 8px;
    border-radius: 4px;
    text-align: right;
    line-height: 1.2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.main-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

#current-page {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.5rem;
    font-weight: 500;
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2rem;
    margin-bottom: 2rem;
    flex: 1;
}

/* 추천 게임 섹션 */
.featured-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

/* 즐겨찾기 섹션 */
.favorites-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.favorites-section h2 {
    color: #4f8cff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}


.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.featured-panel {
    flex: 1;
    min-width: 0;
}

.featured-section h2 {
    color: #4f8cff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.hot-games,
.featured-games,
.recent-games {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.favorites-games {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 너무 빨리 세로로 떨어지지 않게: 3칸 유지 → (2칸 + 아래 1칸 가운데) → 1칸 */
@media (max-width: 760px) {
    .featured-grid {
        /* 삼각형처럼 보이는 배치 대신, 리스트처럼 세로로 쌓기 */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid .featured-panel:nth-child(3) {
        max-width: none;
        justify-self: stretch;
    }
}

/* 광고 섹션 */
.ad-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
}

.ad-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.ad-banner {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.15);
    border-color: #4f8cff;
}

.ad-content {
    flex: 1;
}

.ad-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.ad-content p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ad-button {
    background: #4f8cff;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.ad-button:hover {
    background: #3570c9;
    text-decoration: none;
    color: white;
}

.ad-image {
    flex-shrink: 0;
}

.ad-image img {
    width: 200px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.ad-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* 카테고리 섹션 */
.categories-section h2 {
    color: #4f8cff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.category-tab:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #4f8cff;
    color: white;
    border-color: #4f8cff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.category-content {
    min-height: 200px;
}

.category-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: -0.25rem 0 0.75rem 0;
}

.view-toggle-button {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.view-toggle-button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.15);
}

.game-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

/* 리스트 보기 (카테고리 영역용) */
.game-list.list-view {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
}

/* 이름만 보기 (초압축, 카테고리 영역용) */
.game-list.compact-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    justify-content: stretch;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

.game-list.compact-view .game-thumbnail {
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef0ff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-list.compact-view .game-thumbnail:hover {
    transform: translateY(-2px) scale(1.01);
}

.game-list.compact-view .game-thumbnail img,
.game-list.compact-view .game-description,
.game-list.compact-view .game-category,
.game-list.compact-view .play-count,
.game-list.compact-view .ad-click-text {
    display: none !important;
}

.game-list.compact-view .fav-button {
    display: grid !important;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.game-list.compact-view .game-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
}

/* compact view용 광고 카드: 제목 + 라벨만 보이게 */
.game-list.compact-view .game-thumbnail.ad-game-card {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe8cc 100%);
    border: 2px dashed rgba(255, 176, 32, 0.65);
    grid-column: 1 / -1;
    min-height: 130px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.game-list.compact-view .game-thumbnail.ad-game-card .ad-content-wrapper {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
}

.game-list.compact-view .game-thumbnail.ad-game-card .ad-label-small {
    position: static;
    background: rgba(0,0,0,0.55);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 800;
}

.game-list.compact-view .game-thumbnail.ad-game-card .ad-slot-inline {
    height: 110px;
}

.game-list.compact-view .game-thumbnail.ad-game-card .game-title {
    text-align: center;
}

/* (moved) mobile list-view rules are defined later */

.game-list.list-view .game-thumbnail {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    justify-items: start;
    text-align: left;
}

.game-list.list-view .game-thumbnail:hover {
    transform: translateY(-2px) scale(1.01);
}

.game-list.list-view .game-thumbnail img {
    width: 64px;
    height: 64px;
    margin: 0;
    grid-column: 1;
    grid-row: 1 / span 4;
    justify-self: center;
}

.game-list.list-view .game-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    max-height: calc(1.1rem * 1.2 * 1);
}

.game-list.list-view .game-description {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    max-height: calc(0.8rem * 1.3 * 1);
}

.game-list.list-view .game-category {
    grid-column: 2;
    grid-row: 3;
    margin-top: 2px;
    justify-self: start;
}

.game-list.list-view .play-count {
    grid-column: 2;
    grid-row: 4;
    margin-top: 2px;
}

.game-list.list-view .game-thumbnail.ad-game-card {
    display: block;
    min-height: 150px;
    padding: 12px 12px;
}

.game-list.list-view .game-thumbnail.ad-game-card .ad-content-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.game-list.list-view .ad-click-text {
    margin-top: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.game-list.list-view .game-thumbnail.ad-game-card .game-description,
.game-list.list-view .game-thumbnail.ad-game-card .game-category,
.game-list.list-view .game-thumbnail.ad-game-card .ad-click-text {
    display: none;
}

.game-thumbnail {
    box-sizing: border-box;
    border: none;
    background: #e9e9f7;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    width: 200px;
    flex-shrink: 0;
    height: auto;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 1rem;
    color: #333;
    padding: 1rem;
    text-align: center;
}

.fav-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.88);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.fav-button:hover {
    transform: translateY(-1px);
}

.fav-button[aria-pressed="true"] {
    background: #fff4cc;
    border-color: rgba(255, 176, 32, 0.35);
}

.game-list.list-view .fav-button {
    top: 10px;
    right: 10px;
}

.game-thumbnail.featured {
    width: 220px;
    flex-shrink: 0;
    height: auto;
    min-height: 290px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.game-thumbnail:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 4px 16px rgba(79,140,255,0.15);
}

.game-thumbnail.featured:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.game-thumbnail img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.game-thumbnail.featured img {
    width: 112px;
    height: 112px;
    border: 2px solid rgba(255,255,255,0.3);
}

.game-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.game-description {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.game-category {
    font-size: 0.7rem;
    opacity: 0.7;
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-top: 0.35rem;
    line-height: 1.4;
    text-align: center;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.game-thumbnail.featured .game-category {
    background: rgba(255,255,255,0.2);
}

/* 게임 크기 광고 스타일 */
.game-thumbnail.ad-game-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #6c757d;
    position: relative;
    cursor: pointer;
}

.game-thumbnail.ad-game-card:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #495057;
    transform: translateY(-2px) scale(1.02);
}

.ad-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
}

/* 홈 카테고리 리스트에 삽입되는 광고 슬롯(지금은 placeholder) */
.ad-slot-inline {
    width: 100%;
    height: 110px;
    border: 1px dashed rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.72);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.55);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.ad-label-small {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6c757d;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.ad-click-text {
    font-size: 0.7rem;
    color: #495057;
    margin-top: auto;
    font-style: italic;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-thumbnail.auto-discovered {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    position: relative;
}

.game-thumbnail.auto-discovered:hover {
    border-color: #20c997;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.auto-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.play-count {
    font-size: 0.65rem;
    color: #666;
    margin-top: 0.2rem;
    font-weight: 500;
    margin-top: auto;
    flex-shrink: 0;
}

.game-thumbnail.featured .play-count {
    color: rgba(255,255,255,0.8);
}

.no-games {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}
#game-section {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2rem;
    text-align: center;
}
#back-to-main {
    background: #4f8cff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background 0.15s;
}
#back-to-main:hover {
    background: #3570c9;
}
#game-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 0.3rem 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.nav-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.2rem 0;
    transition: color 0.3s, transform 0.2s;
    text-align: left;
    font-weight: 500;
}

.nav-button:hover {
    color: #f39c12;
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    main {
        margin-left: 2rem;
        margin-right: 2rem;
    }
    
    .footer-content {
        padding: 0 1.5rem;
    }
    
    .featured-games {
        gap: 1.5rem;
    }
    
    .game-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    main {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem;
    }
    
    .footer-content {
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .right-panel {
        align-items: flex-end;
        gap: 6px;
    }
    
    .featured-section h2,
    .categories-section h2 {
        font-size: 1.5rem;
    }
    
    .category-tabs {
        gap: 0.3rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .game-thumbnail {
        width: 170px;
        height: 220px;
    }
    
    .game-thumbnail.featured {
        width: 190px;
        height: 240px;
    }
    
    .featured-games {
        gap: 1rem;
    }
    
    .game-list {
        gap: 1rem;
    }

    /* 광고 모바일 스타일 */
    .ad-section {
        margin-bottom: 2rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .ad-content h3 {
        font-size: 1.1rem;
    }
    

    .game-list.compact-view .game-thumbnail.ad-game-card .ad-slot-inline {
        height: 110px;
    }

    .game-list.compact-view .game-thumbnail.ad-game-card .game-title {
        text-align: center;
    }

    .game-list.compact-view .game-thumbnail.ad-game-card .game-description,
    .game-list.compact-view .game-thumbnail.ad-game-card .game-category,
    .game-list.compact-view .game-thumbnail.ad-game-card .ad-click-text {
        display: none !important;
    }
    .ad-content p {
        font-size: 0.85rem;
    }
    
    .ad-image img {
        width: 150px;
        height: 75px;
    }
}

/* Mobile: 카테고리 섹션은 '리스트' <-> '이름만' 토글 지원 */
@media (max-width: 640px) {
    /* 토글 버튼 표시 */
    .category-controls {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin: -0.25rem 0 0.75rem 0;
    }

    /* 모바일 리스트 보기: 작은 썸네일 + 리스트 */
    .game-list.list-view {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
        gap: 0.75rem;
        padding: 0;
    }

    .game-list.list-view .game-thumbnail {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0.85rem 0.95rem;
        display: grid;
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto auto auto;
        column-gap: 12px;
        row-gap: 4px;
        align-items: center;
        justify-items: start;
        text-align: left;
    }

    .game-list.list-view .game-thumbnail img {
        display: block;
        width: 52px;
        height: 52px;
        margin: 0;
        grid-column: 1;
        grid-row: 1 / span 4;
        justify-self: center;
    }

    .game-list.list-view .game-title {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        max-height: calc(1.1rem * 1.2 * 1);
    }

    .game-list.list-view .game-description {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        max-height: calc(0.8rem * 1.3 * 1);
    }

    .game-list.list-view .game-category {
        grid-column: 2;
        grid-row: 3;
        margin-top: 2px;
        justify-self: start;
    }

    .game-list.list-view .play-count {
        grid-column: 2;
        grid-row: 4;
        margin-top: 2px;
    }

    .game-list.list-view .ad-content-wrapper {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto auto auto;
        column-gap: 12px;
        row-gap: 4px;
        align-items: center;
        text-align: left;
    }

    .game-list.list-view .ad-content-wrapper img {
        display: block;
        width: 52px;
        height: 52px;
        margin: 0;
        border-radius: 8px;
        grid-column: 1;
        grid-row: 1 / span 4;
        justify-self: center;
    }

    /* 모바일 이름만 보기: 더 촘촘한 그리드 */
    .game-list.compact-view {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        padding: 0 0.25rem;
    }

    /* 상단 섹션(HOT/최근/오늘/즐겨찾기)도 모바일에서는 리스트 */
    .hot-games,
    .featured-games,
    .recent-games,
    .favorites-games {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.75rem;
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
    }

    .hot-games .game-thumbnail,
    .featured-games .game-thumbnail,
    .recent-games .game-thumbnail,
    .favorites-games .game-thumbnail {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0.9rem 1rem;
        display: grid;
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto auto auto;
        column-gap: 12px;
        row-gap: 4px;
        align-items: center;
        justify-items: start;
        text-align: left;
    }

    .hot-games .game-thumbnail img,
    .featured-games .game-thumbnail img,
    .recent-games .game-thumbnail img,
    .favorites-games .game-thumbnail img {
        width: 64px;
        height: 64px;
        margin: 0;
        grid-column: 1;
        grid-row: 1 / span 4;
        justify-self: center;
    }

    .hot-games .game-title,
    .featured-games .game-title,
    .recent-games .game-title,
    .favorites-games .game-title {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        max-height: calc(1.1rem * 1.2 * 1);
    }

    .hot-games .game-description,
    .featured-games .game-description,
    .recent-games .game-description,
    .favorites-games .game-description {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        max-height: calc(0.8rem * 1.3 * 1);
    }

    .hot-games .game-category,
    .featured-games .game-category,
    .recent-games .game-category,
    .favorites-games .game-category {
        grid-column: 2;
        grid-row: 3;
        margin-top: 2px;
        justify-self: start;
    }

    .hot-games .play-count,
    .featured-games .play-count,
    .recent-games .play-count,
    .favorites-games .play-count {
        grid-column: 2;
        grid-row: 4;
        margin-top: 2px;
    }

    .hot-games .game-thumbnail.featured,
    .featured-games .game-thumbnail.featured,
    .recent-games .game-thumbnail.featured {
        background: #e9e9f7;
        color: #333;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
}
