:root {
    --bg: #1a1a1c;
    --bg-secondary: #212124;
    --bg-card: #252528;
    --bg-hover: #2c2c30;
    --text: #d4d4d6;
    --text-secondary: #a8a8ad;
    --text-muted: #75757a;
    --border: rgba(255, 255, 255, 0.07);
    --border-active: rgba(255, 255, 255, 0.18);
    --glass-bg: rgba(28, 28, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --warm-gold: #c8a87c;
    --warm-gold-light: #d4b98c;
    --warm-gold-soft: rgba(200, 168, 124, 0.15);
    --warm-gold-glow: rgba(200, 168, 124, 0.25);
    --accent-teal: #7ab8b0;
    --accent-teal-soft: rgba(122, 184, 176, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(200, 168, 124, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ambientGlow 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(122, 184, 176, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ambientGlow 10s ease-in-out 3s infinite;
}

@keyframes ambientGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33% { transform: translate(20px, -15px) scale(1.08); opacity: 1; }
    66% { transform: translate(-10px, 10px) scale(0.94); opacity: 0.6; }
}

.app-container {
    display: flex;
    width: 100%;
    max-width: 1300px;
    min-height: 100vh;
    position: relative;
    padding: 0 16px;
    z-index: 1;
}

.main-content {
    flex: 1;
    padding: 32px 20px 32px 32px;
    max-width: calc(100% - 200px);
    min-width: 0;
    transition: var(--transition);
}

.panel {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}
.panel.active {
    display: block;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.side-nav {
    position: sticky;
    top: 24px;
    right: 0;
    width: 170px;
    min-width: 170px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
    margin-top: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    z-index: 100;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.side-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 168, 124, 0.3), transparent);
    pointer-events: none;
}

.side-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

.side-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(200, 168, 124, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.side-nav-btn:hover::before { opacity: 1; }
.side-nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ececed;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}
.side-nav-btn:active {
    background: rgba(255, 255, 255, 0.07);
    transform: scale(0.96);
    transition: 0.12s ease;
}
.side-nav-btn.active {
    background: rgba(200, 168, 124, 0.08);
    color: #f2eee8;
    border-color: rgba(200, 168, 124, 0.25);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(200, 168, 124, 0.06) inset, 0 0 20px rgba(200, 168, 124, 0.06);
}
.side-nav-btn.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(200, 168, 124, 0.12) 0%, transparent 55%);
}

.side-nav-btn .nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; transition: var(--transition); }
.side-nav-btn.active .nav-icon { opacity: 1; }
.side-nav-btn svg {
    width: 18px; height: 18px; stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.3s ease;
}
.side-nav-btn:hover svg { transform: scale(1.08); }
.side-nav-btn.active svg { transform: scale(1.05); }

.panel-title {
    font-size: 1.75rem; font-weight: 700; margin-bottom: 20px;
    letter-spacing: -0.02em; color: #ece4d8; position: relative; display: inline-block;
}
.panel-title::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 40px; height: 3px;
    background: var(--warm-gold); border-radius: 3px; opacity: 0.7; transition: width 0.5s ease;
}
.panel.active .panel-title::after { width: 55px; animation: titleUnderline 0.6s ease-out; }
@keyframes titleUnderline { from { width: 0; opacity: 0; } to { width: 55px; opacity: 0.7; } }

.panel-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; letter-spacing: 0.01em; }

.home-content {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 28px; min-height: 200px; color: var(--text); line-height: 1.8;
    letter-spacing: 0.015em; position: relative; overflow: hidden; transition: var(--transition);
}
.home-content::before {
    content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(200, 168, 124, 0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.home-content:hover { border-color: rgba(200, 168, 124, 0.15); box-shadow: 0 0 30px rgba(200, 168, 124, 0.04); }

.intro-section { display: flex; flex-direction: column; gap: 20px; }
.intro-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px;
    background: rgba(255, 255, 255, 0.015); border-radius: var(--radius);
    transition: var(--transition); border: 1px solid transparent;
}
.intro-item:hover {
    background: rgba(200, 168, 124, 0.04); border-color: rgba(200, 168, 124, 0.12);
    transform: translateX(4px);
}
.intro-icon {
    font-size: 1.4rem; flex-shrink: 0; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--warm-gold-soft); border-radius: 10px; color: var(--warm-gold-light);
}
.intro-item span:last-child { color: #c8c8cc; font-size: 0.95rem; line-height: 1.7; letter-spacing: 0.02em; }
.intro-item strong { color: #e0d8c8; font-weight: 600; }
.blog-link {
    color: var(--warm-gold); text-decoration: none; border-bottom: 1px dashed rgba(200, 168, 124, 0.5);
    transition: var(--transition); font-weight: 500;
}
.blog-link:hover { color: var(--warm-gold-light); border-bottom-color: var(--warm-gold-light); }

.stats-section { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.stat-card {
    flex: 1; min-width: 120px; background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius);
    padding: 16px 14px; text-align: center; transition: var(--transition);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stat-card:hover {
    border-color: rgba(200, 168, 124, 0.3); box-shadow: 0 0 18px rgba(200, 168, 124, 0.08);
    transform: translateY(-2px);
}
.stat-value { font-size: 2rem; font-weight: 700; color: #e8dcc8; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.03em; }
.stat-icon { font-size: 1.3rem; margin-right: 4px; vertical-align: middle; opacity: 0.8; }

.search-wrap { position: relative; margin-bottom: 24px; max-width: 420px; }
.search-input {
    width: 100%; padding: 13px 18px 13px 44px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 50px; color: var(--text);
    font-size: 0.95rem; font-family: var(--font); transition: var(--transition);
    outline: none; letter-spacing: 0.02em;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    border-color: rgba(200, 168, 124, 0.4);
    box-shadow: 0 0 0 4px rgba(200, 168, 124, 0.06), 0 0 20px rgba(200, 168, 124, 0.05);
    background: #2a2a2e;
}
.search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; pointer-events: none; stroke: var(--text-muted);
    fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.3s ease;
}
.search-input:focus~.search-icon { stroke: var(--warm-gold); }
.search-clear {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 1.1rem; padding: 4px 8px; border-radius: 50%; transition: var(--transition);
    display: none; line-height: 1;
}
.search-clear.visible { display: block; }
.search-clear:hover { color: #d0d0d4; background: rgba(255, 255, 255, 0.06); }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.game-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: var(--transition); position: relative;
    -webkit-tap-highlight-color: transparent;
}
.game-card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(200, 168, 124, 0.2), 0 0 30px rgba(200, 168, 124, 0.08);
    z-index: 2;
}
.game-card:hover::after { opacity: 1; }
.game-card:hover {
    border-color: rgba(200, 168, 124, 0.25); transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); background: var(--bg-hover);
}
.game-card:active { transform: scale(0.97); transition: 0.12s ease; }
.game-card-img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
    background: #1e1e22; border-bottom: 1px solid var(--border); transition: filter 0.4s ease;
    position: relative; z-index: 1;
}
.game-card:hover .game-card-img { filter: brightness(1.06); }
.game-card-img[src=''], .game-card-img:not([src]) {
    background: #1e1e22; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.8rem;
}
.game-card-body { padding: 12px 14px; position: relative; z-index: 1; }
.game-card-name {
    font-weight: 600; font-size: 0.92rem; color: #e4e0d8; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; letter-spacing: 0.01em; transition: color 0.3s ease;
}
.game-card:hover .game-card-name { color: #f0ebe0; }
.game-card-producer { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.02em; }
.game-card-badge {
    display: inline-block; font-size: 0.7rem; background: var(--warm-gold-soft);
    color: #d4b98c; padding: 3px 10px; border-radius: 20px; margin-top: 6px;
    letter-spacing: 0.03em; font-weight: 500; border: 1px solid rgba(200, 168, 124, 0.2);
}

.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 0.95rem; letter-spacing: 0.02em; }
.no-results svg { width: 48px; height: 48px; stroke: var(--text-muted); margin-bottom: 14px; opacity: 0.4; }
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 60px 20px; gap: 8px; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.02em; }
.loading-spinner .spinner-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warm-gold); animation: spinnerBounce 1.3s infinite ease-in-out; opacity: 0.7; }
.loading-spinner .spinner-dot:nth-child(2) { animation-delay: 0.18s; background: #c0b098; }
.loading-spinner .spinner-dot:nth-child(3) { animation-delay: 0.36s; background: #b8a888; }
@keyframes spinnerBounce {
    0%, 80%, 100% { transform: scale(0.45); opacity: 0.3; }
    40% { transform: scale(1.15); opacity: 1; }
}

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center;
    justify-content: center; animation: fadeIn 0.25s ease-out; padding: 20px;
}
.modal-overlay.closing { animation: fadeOut 0.2s ease-out forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.modal-dialog {
    background: var(--bg-secondary); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl); max-width: 520px; width: 100%; max-height: 85vh;
    overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(200, 168, 124, 0.04);
    animation: modalSlideUp 0.35s ease-out; position: relative;
}
@keyframes modalSlideUp { from { transform: translateY(35px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
    position: sticky; top: 12px; float: right; z-index: 10; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d0d0d4; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center;
    justify-content: center; transition: var(--transition); margin-right: 12px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.modal-close:hover { background: rgba(200, 168, 124, 0.15); color: #fff; border-color: rgba(200, 168, 124, 0.3); transform: rotate(90deg); }
.modal-img { width: 100%; max-height: 320px; object-fit: cover; display: block; background: #1e1e22; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal-body { padding: 20px 24px 28px; }
.modal-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; color: #ece4d8; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.modal-meta span { font-size: 0.8rem; background: rgba(255, 255, 255, 0.04); padding: 5px 12px; border-radius: 20px; color: #b8b8bd; border: 1px solid rgba(255, 255, 255, 0.05); }
.modal-description { color: #c0c0c5; font-size: 0.9rem; line-height: 1.7; margin: 14px 0 20px; letter-spacing: 0.015em; white-space: pre-wrap; word-break: break-word; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px;
    border-radius: 50px; font-size: 0.9rem; font-family: var(--font); cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04);
    color: #d8d8dc; transition: var(--transition); letter-spacing: 0.02em;
    text-decoration: none; -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #f2f2f5; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.btn:active { transform: scale(0.95); transition: 0.1s ease; }
.btn-primary { background: #c8a87c; border-color: #c8a87c; color: #1a1a1c; font-weight: 600; letter-spacing: 0.03em; }
.btn-primary:hover { background: #d4b98c; border-color: #d4b98c; color: #1a1a1c; box-shadow: 0 8px 24px rgba(200,168,124,0.3); transform: translateY(-2px); }
.btn-copy { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.12); }
.btn-copy:hover { background: rgba(200,168,124,0.1); border-color: rgba(200,168,124,0.3); color: #e8dcc8; }
.btn-copy.copied { background: rgba(122,184,176,0.2); border-color: rgba(122,184,176,0.45); color: #a8dcd6; transition: 0.15s ease; }
.password-field {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 50px; padding: 8px 14px;
    font-size: 0.85rem; letter-spacing: 0.04em; color: #d0d0d4; font-family: 'SF Mono', monospace;
}

.download-source-badge {
    display: inline-flex; align-items: center; gap: 5px; background: var(--warm-gold-soft);
    border: 1px solid rgba(200,168,124,0.22); border-radius: 20px; padding: 6px 15px;
    font-size: 0.8rem; color: #d4b98c; letter-spacing: 0.03em; white-space: nowrap; font-weight: 500;
}
.download-source-badge::before { content: '📦'; font-size: 0.85rem; margin-right: 2px; }

.submit-content {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px 28px; line-height: 1.9; letter-spacing: 0.015em; position: relative; overflow: hidden;
}
.submit-content::before {
    content: ''; position: absolute; bottom: -30px; left: -30px;
    width: 100px; height: 100px; background: radial-gradient(circle, rgba(122,184,176,0.05) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.submit-content .info-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.submit-content .info-label { font-weight: 600; color: #c8c8cc; min-width: 50px; font-size: 0.9rem; letter-spacing: 0.03em; }
.submit-content .info-value { color: #e4dcc8; font-size: 0.95rem; word-break: break-all; }
.submit-content a { color: #c8a87c; text-decoration: none; transition: var(--transition); border-bottom: 1px solid transparent; font-weight: 500; }
.submit-content a:hover { color: #d4b98c; border-bottom-color: rgba(200,168,124,0.5); }
.submit-content .highlight-box {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; letter-spacing: 0.02em; transition: var(--transition);
}
.submit-content .highlight-box:hover { border-color: rgba(200,168,124,0.15); box-shadow: 0 0 20px rgba(200,168,124,0.03); }

.friend-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.friend-link-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-align: center; transition: var(--transition); text-decoration: none;
    color: inherit; display: block; -webkit-tap-highlight-color: transparent; position: relative; overflow: hidden;
}
.friend-link-card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
    box-shadow: inset 0 0 0 1px rgba(200,168,124,0.18), 0 0 25px rgba(200,168,124,0.06);
}
.friend-link-card:hover::after { opacity: 1; }
.friend-link-card:hover { border-color: rgba(200,168,124,0.25); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.35); background: var(--bg-hover); }
.friend-link-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; background: #1e1e22; border: 2px solid rgba(255,255,255,0.06); transition: var(--transition); }
.friend-link-card:hover img { border-color: rgba(200,168,124,0.35); transform: scale(1.06); }
.friend-link-card .fl-name { font-weight: 600; font-size: 0.9rem; color: #e4dcc8; letter-spacing: 0.02em; }
.friend-link-card .fl-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.friend-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.03em; grid-column: 1 / -1; }

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #2a2824; color: #e8dcc8; padding: 11px 24px; border-radius: 50px;
    font-size: 0.85rem; z-index: 2000; letter-spacing: 0.03em;
    border: 1px solid rgba(200,168,124,0.3); box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 16px rgba(200,168,124,0.06);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,168,124,0.25); }

@media (max-width: 768px) {
    .app-container { flex-direction: column-reverse; padding: 0 8px; max-width: 100%; }
    .main-content { max-width: 100%; padding: 16px 10px 100px; }
    .side-nav {
        position: fixed; bottom: 12px; left: 12px; right: 12px; top: auto; width: auto; min-width: auto;
        flex-direction: row; justify-content: space-around; gap: 4px; padding: 8px 6px; margin-top: 0;
        border-radius: 50px; z-index: 500; background: rgba(28,28,30,0.82);
        backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
        box-shadow: 0 -2px 24px rgba(0,0,0,0.55);
    }
    .side-nav::after { display: none; }
    .side-nav-btn { flex-direction: column; gap: 3px; padding: 8px 6px; font-size: 0.7rem; border-radius: 16px; min-width: 50px; justify-content: center; align-items: center; letter-spacing: 0.04em; }
    .side-nav-btn:hover { transform: translateY(-2px); }
    .side-nav-btn svg { width: 20px; height: 20px; stroke-width: 1.6; }
    .side-nav-btn .nav-icon { width: 20px; height: 20px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .game-card-name { font-size: 0.8rem; }
    .game-card-body { padding: 8px 10px; }
    .panel-title { font-size: 1.35rem; }
    .modal-dialog { max-width: 95vw; border-radius: var(--radius-lg); }
    .modal-img { max-height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .modal-body { padding: 14px 16px 20px; }
    .friend-links-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .search-wrap { max-width: 100%; }
    body::before, body::after { opacity: 0.5; width: 280px; height: 280px; }
    .intro-item { flex-direction: column; gap: 8px; }
    .intro-icon { width: 32px; height: 32px; font-size: 1.2rem; }
    .stats-section { flex-direction: column; gap: 12px; }
}

@media (max-width: 380px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .side-nav-btn { font-size: 0.65rem; padding: 6px 4px; min-width: 40px; gap: 2px; }
    .side-nav-btn svg { width: 17px; height: 17px; }
}