:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --border: #e5e7eb;
    --accent: #c62828;
    --accent-dark: #8f1020;
    --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

.logo {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0;
}

.search-container {
    position: relative;
    width: min(320px, 100%);
    flex: 0 1 320px;
}

.search-container input {
    width: 100%;
    height: 38px;
    padding: 8px 78px 8px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.search-container input:focus {
    border-color: rgba(198, 40, 40, 0.45);
}

.search-container button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    min-width: 58px;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

nav a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 999px;
}

.ad-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 14px 0 8px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.ad-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

main {
    padding: 18px 0 24px;
}

.section-heading {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.game-multi-list,
.game-cards-list,
.game-names-list {
    display: grid;
    gap: 14px;
    width: 100%;
}

.game-multi-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.game-cards-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-bottom: 20px;
}

.game-names-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-bottom: 20px;
}

.game-multi-item,
.game-cards-item,
.game-names-item,
.game-hclks-item,
.game-stars-item,
.game-likes-item {
    min-width: 0;
}

.game-multi-item a,
.game-cards-link,
.game-names-item a,
.game-hclks-link,
.game-stars-item a,
.game-likes-item a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: inherit;
}

.game-multi-item a:hover,
.game-cards-link:hover,
.game-names-item a:hover,
.game-hclks-link:hover,
.game-stars-item a:hover,
.game-likes-item a:hover {
    border-color: rgba(198, 40, 40, 0.22);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.game-multi-item img,
.game-cards-item img,
.game-names-item img,
.game-hclks-item img,
.game-stars-item img,
.game-likes-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #edf1f5;
}

.game-cards-link {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 128px;
}

.game-cards-item img {
    height: 100%;
}

.card-content,
.game-cards-desc,
.game-hclks-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 15px 16px;
}

.card-title,
.game-cards-desc-name,
.game-names-name,
.game-hclks-desc-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title,
.game-cards-desc-name,
.game-hclks-desc-name {
    -webkit-line-clamp: 2;
}

.card-meta,
.game-cards-desc-likes {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
}

.game-names-name {
    padding: 12px 14px 14px;
    font-size: 14px;
    text-align: center;
    -webkit-line-clamp: 2;
}

.game-hclks-desc-name {
    text-align: center;
}

.game-stars-star,
.game-likes-play {
    padding: 12px 14px 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.breathing {
    animation: none !important;
}

.card-container .flip,
.card-container:hover .flip {
    transform: none !important;
}

footer {
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.footer-content a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 2px;
    }

    .search-container {
        width: 100%;
        flex-basis: auto;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 14px;
        right: 0;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 8px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    nav ul.active {
        display: block;
    }

    nav li {
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    nav li:last-child {
        border-bottom: 0;
    }

    nav a {
        display: block;
        padding: 12px 20px;
    }

    .game-multi-list,
    .game-cards-list {
        grid-template-columns: 1fr !important;
    }

    .game-names-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .game-cards-link {
        grid-template-columns: 110px minmax(0, 1fr);
        min-height: 116px;
    }

    .game-multi-item img,
    .game-cards-item img,
    .game-names-item img,
    .game-hclks-item img,
    .game-stars-item img,
    .game-likes-item img {
        height: 140px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .game-multi-list,
    .game-cards-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
