:root {
    --primary-color: #5d5cde;
    --primary-light: #8e8cf5;
    --accent-color: #ff9f87;
    --accent-secondary: #ffd76e;
    --bg-gradient-start: #f8f9ff;
    --bg-gradient-end: #eef2f5;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -12px rgba(93, 92, 222, 0.25);
    --radius-blob: 40% 60% 70% 30% / 40% 50% 60% 50%;
    --radius-lg: 32px;
    --radius-md: 20px;
}

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

body {
    font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Rich-text list marker alignment (fix bullet indentation/marker protrusion) */
.container-game-description-text ul,
.container-game-description-text ol,
.description-box ul,
.description-box ol,
.game-description ul,
.game-description ol,
.game-desc ul,
.game-desc ol,
#game-description ul,
#game-description ol,
#overview ul,
#overview ol {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.container-game-description-text ul li,
.description-box ul li,
.game-description ul li,
.game-desc ul li,
#game-description ul li,
#overview ul li {
    list-style-type: disc !important;
    list-style-position: inside !important;
    padding-left: 0 !important;
}

.container-game-description-text ol li,
.description-box ol li,
.game-description ol li,
.game-desc ol li,
#game-description ol li,
#overview ol li {
    list-style-type: decimal !important;
    list-style-position: inside !important;
    padding-left: 0 !important;
}

/* Background Decor - Blobs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

body::before {
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    top: -200px;
    right: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -150px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

/* Layout Grid - Sidebar + Main */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    max-width: 1440px; /* Reduced from 1600px */
    margin: 0 auto;
    gap: 60px; /* Increased gap */
    padding: 60px; /* Increased padding */
}

/* Sidebar Navigation */
.sidebar {
    position: sticky;
    top: 60px; /* Match container padding to prevent initial scroll movement */
    height: calc(100vh - 120px); /* Adjust height to match top/bottom spacing */
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span.icon {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(93, 92, 222, 0.3);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
}

/* Main Content Area */
main {
    width: 100%;
}

/* Hero Section inside Main */
.hero-banner {
    background: linear-gradient(120deg, #6c5ce7, #a29bfe);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: white;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: rotate 20s infinite linear;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-decoration {
    font-size: 8rem;
    opacity: 0.2;
    transform: rotate(15deg);
    position: absolute;
    right: 40px;
    bottom: -20px;
}

/* Masonry Grid -> CSS Grid for better sizing control */
.game-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

/*
 * Layout presets (structural difference, not only image ratio):
 * - default `.game-grid`: multi-column vertical cards
 * - `.game-grid--featured`: first item full-width horizontal "hero" + remaining vertical grid
 * - `.game-grid--wide`: 2-column module of horizontal strip cards (page scroll only, no overflow-x)
 */

.game-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.game-grid--featured .game-card:first-child {
    grid-column: 1 / -1;
}

.game-grid--featured .game-card:first-child .game-link {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
}

.game-grid--featured .game-card:first-child .game-thumb-wrapper {
    flex: 0 0 clamp(200px, 38%, 380px);
    aspect-ratio: 16 / 9;
}

.game-grid--featured .game-card:first-child .game-info {
    flex: 1;
    justify-content: center;
    padding: 18px 22px 20px;
    min-width: 0;
}

.game-grid--featured .game-card:first-child .game-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 1.35rem;
}

.game-grid--featured .game-card:first-child .brief-comment-game {
    -webkit-line-clamp: 3;
}

.game-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.game-grid--wide .game-card {
    min-height: 0;
}

.game-grid--wide .game-link {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
}

.game-grid--wide .game-thumb-wrapper {
    flex: 0 0 clamp(120px, 32%, 200px);
    width: clamp(120px, 32%, 200px);
    aspect-ratio: 1 / 1;
}

.game-grid--wide .game-info {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 12px 14px;
}

.game-grid--wide .game-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.game-grid--wide .brief-comment-game {
    -webkit-line-clamp: 2;
}

@media (max-width: 700px) {
    .game-grid--wide {
        grid-template-columns: 1fr;
    }
}

/* Game Card - Unique Style */
.game-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    transform-origin: center bottom;
    display: flex;
    flex-direction: column;
    contain: layout style;
}

/* Section Styling */
.home-search {
    margin: 24px 0 10px;
}

.home-search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.home-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-search-input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(93, 92, 222, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 14px;
    font-size: 0.98rem;
    color: var(--text-color);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 92, 222, 0.15);
}

.home-search-clear {
    height: 46px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-search-clear:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.search-empty-state {
    margin: 20px 0 30px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(93, 92, 222, 0.1);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px; /* 为 ::after 下划线预留空间，避免遮挡下方简介 */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    /* 预留给 section-title::after 下划线与简介之间的视觉空间 */
    gap: 10px;
}

.section-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.section-link:hover {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.page-btn:hover {
    background: var(--bg-gradient-start);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(93, 92, 222, 0.3);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.game-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.game-thumb-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(93, 92, 222, 0.06);
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .play-icon {
    transform: scale(1);
}

.game-info {
    padding: 12px 14px 14px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brief-comment-game {
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    min-height: 0;
}

.game-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(93, 92, 222, 0.08);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
}

/* Detail Page Unique Styles - Refactored to Vertical Layout */
.game-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New Hero Section for Detail Page */
.detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

/* Game Player Container - Now Focuses on Preview/Launch */
.game-launch-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.game-launch-overlay {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-launch-btn {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    outline: none;
    z-index: 10;
}

.game-launch-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(255,255,255,0.3);
    background: white;
    color: var(--primary-color);
}

.launch-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Description Section */
.detail-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-empty {
    padding: 0; /* Let empty-state control spacing */
}

.empty-state {
    padding: 56px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(93, 92, 222, 0.06), rgba(255, 215, 110, 0.14));
    border: 1px solid rgba(93, 92, 222, 0.10);
}

.empty-state-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.empty-state-title {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.empty-state-desc {
    margin: 0 auto 22px;
    max-width: 520px;
    color: var(--text-muted);
    font-weight: 600;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
}

.empty-state-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
    box-shadow: 0 10px 22px rgba(93, 92, 222, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.empty-state-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(93, 92, 222, 0.30);
    background: #4b4ad0;
}

.empty-state-link:focus-visible {
    outline: 3px solid rgba(93, 92, 222, 0.35);
    outline-offset: 3px;
}

.detail-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.detail-desc-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(93, 92, 222, 0.08);
}

.detail-desc-section h2 {
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
}

.detail-desc-section h2::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.detail-desc-section--about h2::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(93, 92, 222, 0.14);
}

.detail-desc-section--content h2::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 159, 135, 0.2);
}

.detail-desc-section .container-game-description-text,
.detail-desc-section .game-description {
    color: var(--text-muted);
}

/* Rich text heading scale inside Description content */
.detail-desc-section--content .container-game-description-text h1 {
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 14px;
}

.detail-desc-section--content .container-game-description-text h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    line-height: 1.25;
}

.detail-desc-section--content .container-game-description-text h3 {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.3;
}

.detail-content p {
    margin-bottom: 15px;
}

/* Fullscreen Modal Overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: none; /* Hidden by default */
    flex-direction: column;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-header {
    height: 60px;
    background: rgba(20, 20, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: white;
}

.fullscreen-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.fullscreen-frame-container {
    flex-grow: 1;
    width: 100%;
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Tags Cloud - Floating Bubbles */
.tags-cloud-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 60px 0;
}

.tag-bubble {
    padding: 15px 30px;
    background: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.tag-bubble:hover {
    transform: scale(1.1) rotate(-2deg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.tag-bubble:nth-child(3n) { background: #fff0f0; color: #ff6b6b; }
.tag-bubble:nth-child(3n+1) { background: #f0f8ff; color: #4834d4; }
.tag-bubble:nth-child(3n+2) { background: #f0fff4; color: #20bf6b; }

/* Responsive */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
        padding: 20px 20px 100px 20px; /* Bottom padding for mobile nav */
        gap: 30px;
    }

    .sidebar {
        position: fixed;
        bottom: 20px;
        top: auto;
        left: 2px;
        right: 2px;
        width: auto;
        height: 70px;
        flex-direction: row;
        padding: 5px 25px;
        justify-content: space-between;
        align-items: center;
        border-radius: 50px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1000;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .logo {
        display: none; /* Hide Logo on mobile bottom nav */
    }

    .nav-menu {
        flex-direction: row;
        gap: 0;
        width: 100%;
        justify-content: space-between;
    }

    .nav-link {
        padding: 10px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    
    .nav-link span.icon {
        font-size: 1.5rem;
        margin: 0; /* Center icon */
    }

    /* Hide text on mobile nav, only icons */
    .nav-link {
        font-size: 0; 
    }
    
    .nav-link.active {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 5px 15px rgba(93, 92, 222, 0.4);
        transform: translateY(-5px);
    }

    .sidebar-footer {
        display: none;
    }
    
    .section-header {
        margin: 40px 0 20px;
    }
}

@media (max-width: 600px) {
    /* Mobile Grid: Force 2 columns */
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-bottom: 16px;
    }

    .game-card {
        border-radius: 12px;
    }

    .game-info {
        padding: 8px;
    }
    
    .game-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-tags {
        display: none; /* Hide tags on mobile grid to save space */
    }

    .game-grid--featured .game-card:first-child .game-link {
        flex-direction: column;
    }

    .game-grid--featured .game-card:first-child .game-thumb-wrapper {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .game-grid--featured .game-card:first-child .game-title {
        font-size: 1.05rem;
    }

    .game-grid--wide .game-link {
        flex-direction: column;
    }

    .game-grid--wide .game-thumb-wrapper {
        flex: none;
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9;
    }

    .hero-banner {
        padding: 24px 16px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-decoration {
        display: none;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .home-search-box {
        gap: 8px;
    }

    .home-search-input {
        height: 42px;
        font-size: 0.92rem;
    }

    .home-search-clear {
        height: 42px;
        padding: 0 12px;
    }

    /* Detail Page Mobile */
    .detail-title {
        font-size: 2rem;
    }
    
    .game-launch-container {
        border-radius: 12px;
    }
    
    .game-launch-btn {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }
    
    .launch-text {
        font-size: 1rem;
    }
    
    .detail-content {
        padding: 20px;
    }

    .detail-desc-section {
        padding: 20px 18px;
    }

    .detail-desc-section--content .container-game-description-text h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .detail-desc-section--content .container-game-description-text h2 {
        font-size: 1.5rem;
    }

    .detail-desc-section--content .container-game-description-text h3 {
        font-size: 1.25rem;
    }

    .detail-empty {
        padding: 0;
    }

    .empty-state {
        padding: 34px 18px;
    }

    .empty-state-icon {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }

    .empty-state-title {
        font-size: 1.4rem;
    }
}
