/* assets/css/style.css - Modular Design System for script.lol */

:root {
    --bg: #0c0c0e;
    --surface: #131316;
    --card: #18181c;
    --card-hover: #1f1f24;
    --border: #26262b;
    --border-hover: #3b3b42;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-soft: rgba(139, 92, 246, 0.12);
    --accent: #06b6d4;
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --text: #f4f4f6;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* Icon Helper */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    vertical-align: middle;
}
.icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Navbar */
.navbar {
    background: rgba(19, 19, 22, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.brand-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-soft);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.brand-badge {
    background: #26262b;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Nav Search */
.nav-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.nav-search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.55rem 4rem 0.55rem 2.25rem;
    color: #fff;
    font-size: 0.875rem;
    transition: border-color 0.15s, background-color 0.15s;
}
.nav-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #17171c;
}
.nav-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}
.nav-search-kbd {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: #202025;
    color: var(--text-dim);
    border: 1px solid var(--border);
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    pointer-events: none;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
}
.nav-link-btn {
    background: #202025;
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.825rem;
}
.nav-link-btn:hover {
    background: #26262e;
    border-color: var(--border-hover);
    color: #fff;
}

/* Mobile Drawer (Side) */
#menu-toggle { display: none; }
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.25rem;
}
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -290px;
    width: 280px;
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}
#menu-toggle:checked ~ .mobile-drawer { right: 0; }
#menu-toggle:checked ~ .drawer-overlay { display: block; }

/* Mobile Bottom Navigation Bar (App-like) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(18, 18, 22, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 990;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}
.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 500;
    gap: 0.25rem;
    flex: 1;
    height: 100%;
    transition: color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-bar-item .icon {
    width: 1.2rem;
    height: 1.2rem;
}
.mobile-bar-item.active,
.mobile-bar-item:hover {
    color: var(--primary);
}

/* Center Elevated Search Trigger */
.mobile-bar-center-btn {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #121216;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s;
}
.mobile-bar-center-btn:active {
    transform: scale(0.92);
}
.mobile-bar-center-btn .icon {
    width: 1.3rem;
    height: 1.3rem;
}

/* Mobile Search Modal Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}
.mobile-search-overlay.open {
    display: flex;
}
.mobile-search-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    width: 100%;
    max-width: 520px;
    margin: 1rem auto 0;
}
.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.mobile-search-close {
    background: #202026;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile-search-input-wrap {
    position: relative;
    margin-bottom: 1rem;
}
.mobile-search-modal-input {
    width: 100%;
    background: #0d0d10;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.mobile-search-modal-input:focus {
    border-color: var(--primary);
}
.mobile-search-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .nav-search { display: none; }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* offset for bottom app bar */
    }
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .mobile-bottom-bar { display: flex; }
}

/* Hero Section */
.hero-box {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-soft);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.hero-title span {
    color: var(--primary);
}
.hero-desc {
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}

/* Quick Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.filter-pill {
    background: #1b1b20;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s;
}
.filter-pill:hover, .filter-pill.active {
    background: #24242c;
    border-color: var(--border-hover);
    color: #fff;
}

/* Script Grid & Cards */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.script-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.15s;
}
.script-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.card-media {
    position: relative;
    aspect-ratio: 16/9;
    background: #111114;
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}
.script-card:hover .card-media img {
    transform: scale(1.03);
}
.card-badge-status {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(14, 14, 18, 0.85);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.08);
}
.card-badge-status.free { color: var(--success); }
.card-badge-status.key { color: var(--warning); }

.card-badge-author {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(14, 14, 18, 0.85);
    backdrop-filter: blur(4px);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a:hover {
    color: var(--primary);
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    margin-bottom: 1rem;
}
.tag-badge {
    background: #202026;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Primary Action Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
}
.btn-secondary {
    background: #222227;
    border-color: var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    background: #2a2a32;
    border-color: var(--border-hover);
    color: #fff;
}
.btn-block {
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.page-btn {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s;
}
.page-btn:hover {
    border-color: var(--border-hover);
    color: #fff;
}
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Detail Page Components */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}
.code-box {
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}
.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: #121216;
    border-bottom: 1px solid var(--border);
}
.code-box-content {
    max-height: 380px;
    overflow: auto;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #c4b5fd;
}
.code-box-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Content Box */
.content-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.content-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.content-box h2:first-child {
    margin-top: 0;
}
.content-box p {
    margin-bottom: 1rem;
}
.content-box ul, .content-box ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.content-box li {
    margin-bottom: 0.4rem;
}

/* Admin Panel Components */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}
.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.data-table th {
    padding: 0.65rem 0.5rem;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #202025;
}
.data-table tr:hover td {
    background: #1b1b22;
}

/* Form inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text);
}
.form-input, .form-select, .form-textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: #fff;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    background: #18181c;
    color: #fff;
    border: 1px solid var(--primary);
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    pointer-events: none;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Clean Footer */
.site-footer {
    margin-top: auto;
    background: #09090c;
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Ad Slot Containers & Placeholders */
.ad-slot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 1.25rem auto;
    overflow: hidden;
}
.ad-slot-listing_infeed {
    grid-column: 1 / -1;
    width: 100%;
}
.ad-slot-wrapper iframe,
.ad-slot-wrapper img {
    max-width: 100% !important;
    height: auto !important;
}
.ad-placeholder-box {
    width: 100%;
    max-width: 728px;
    min-height: 85px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(59,130,246,0.06));
    border: 1px dashed rgba(139,92,246,0.35);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
}
.ad-slot-tag {
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}
.ad-slot-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ==========================================================================
   GAME FILTER BAR COMPONENT (Mobile Swipe & PC Controls)
   ========================================================================== */
.game-filter-section {
    margin-bottom: 2rem;
    padding: 1.1rem 1.25rem 0.6rem;
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.7) 0%, rgba(18, 18, 22, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.game-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.game-filter-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.game-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    color: var(--primary);
}
.game-filter-icon svg {
    width: 100%;
    height: 100%;
}

.game-filter-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.game-filter-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-filter-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.game-scroll-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #19191e;
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.game-scroll-btn:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    color: #fff;
    transform: scale(1.05);
}
.game-scroll-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
}

.game-filter-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.game-filter-track {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.2rem 0.7rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.game-filter-track::-webkit-scrollbar {
    display: none;
}

.game-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #141418;
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.game-chip:hover {
    background: #1c1c22;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.game-chip.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
}

.game-chip-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.game-chip-title {
    line-height: 1;
}

.game-chip-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.12rem 0.4rem;
    border-radius: 9999px;
    line-height: 1;
}
.game-chip-badge.badge-hot {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.game-chip-badge.badge-trending {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.game-chip-badge.badge-new {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.game-chip-badge.badge-popular {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.game-chip-badge.badge-fps,
.game-chip-badge.badge-pvp {
    background: rgba(6, 182, 212, 0.18);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.game-chip-badge.badge-rp,
.game-chip-badge.badge-anime,
.game-chip-badge.badge-horror,
.game-chip-badge.badge-fun,
.game-chip-badge.badge-farming,
.game-chip-badge.badge-classic {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Game Badge */
.card-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    max-width: 100%;
}
.card-game-badge:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .game-filter-section {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: var(--radius-md);
        padding: 0.85rem 0.85rem 0.4rem;
    }
    .game-filter-controls {
        display: none; /* Rely on natural touch swipe gestures on mobile */
    }
}

