:root {
    --accent: #2f97ff;
    --accent-2: #157cea;
    --success: #1bd85f;
    --success-2: #13b94f;
    --bg-top: #1a1f27;
    --bg-mid: #11161d;
    --bg-bottom: #0a0d13;
    --panel: #171c25;
    --panel-2: #242a34;
    --chip: #11161f;

    --text: #ffffff;
    --text-soft: #d8dfeb;
    --text-muted: #9ca8bb;
    --text-dim: #7e8999;
    --line: rgba(255, 255, 255, 0.05);

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-card: 0 12px 26px rgba(0, 0, 0, 0.22);

    --transition: 280ms cubic-bezier(.22, .61, .36, 1);
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(56, 66, 86, 0.40) 0%, rgba(14, 18, 25, 0) 34%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    font: inherit;
}

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg-mid) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    min-height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
}

.burger {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}

.burger:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.burger span,
.burger span::before,
.burger span::after {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    position: relative;
    content: "";
}

.burger span::before {
    position: absolute;
    top: -5px;
    left: 0;
}

.burger span::after {
    position: absolute;
    top: 5px;
    left: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo-text-fallback {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1;
}

.top-nav a {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.top-nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: flex-end;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), filter var(--transition);
}

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

.btn-login {
    background: var(--panel-2);
    color: var(--text);
}

.btn-login:hover {
    filter: brightness(1.08);
}

.btn-register {
    background: linear-gradient(180deg, var(--success) 0%, var(--success-2) 100%);
    color: var(--text);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--success) 18%, transparent);
}

.btn-register:hover {
    filter: brightness(1.04);
}

/* Layout */

.page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 26px 18px 44px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--chip);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), filter var(--transition);
}

.chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tool-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.tool-links a {
    transition: color var(--transition);
}

.tool-links a:hover {
    color: var(--text);
}

.section {
    margin-bottom: 32px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.view-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 30%, transparent);
    filter: brightness(1.04);
}

.circle-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--chip);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background var(--transition);
}

.circle-btn:hover {
    transform: translateY(-1px);
    background: var(--panel);
}

/* Game rows */

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 6px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: #2d3644 transparent;
}

.scroll-row::-webkit-scrollbar {
    height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
    background: #2d3644;
    border-radius: 999px;
}

/* Game card */

.game-card {
    flex: 0 0 176px;
    width: 176px;
    display: block;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    transform-origin: center center;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.30);
    filter: brightness(1.03);
}

.game-cover {
    position: relative;
    height: 196px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
}

.game-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--panel);
    transform: scale(1);
    transition: transform var(--transition), filter var(--transition), opacity var(--transition);
}

.game-card:hover .game-cover-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.game-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 16%, rgba(255,255,255,0.12), transparent 20%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(7, 10, 16, 0.16) 35%, rgba(7, 10, 16, 0.78) 100%);
}

.game-cover-inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-badge {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    width: fit-content;
    padding: 0 8px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(10, 12, 18, 0.30);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    transition: opacity 180ms ease;
}

.game-cover-title {
    position: relative;
    z-index: 5;
    font-size: 24px;
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--text);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: opacity 180ms ease;
}

.game-hover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 10, 16, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

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

.game-card:hover .game-badge,
.game-card:hover .game-cover-title {
    opacity: 0;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.game-card:hover .play-btn {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 34%, transparent);
    filter: brightness(1.04);
}

.game-meta {
    padding: 13px 12px 14px;
    text-align: center;
    background: rgba(8, 11, 16, 0.18);
}

.game-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Theme fallback if image missing */

.theme-pink   { background: linear-gradient(135deg, #ff9be4 0%, #d316ff 100%); }
.theme-yellow { background: linear-gradient(135deg, #ffe654 0%, #ff9d00 100%); }
.theme-blue   { background: linear-gradient(135deg, #67c0ff 0%, #2850ff 100%); }
.theme-violet { background: linear-gradient(135deg, #52b8ff 0%, #6a42ff 55%, #ff8a42 100%); }
.theme-cyan   { background: linear-gradient(135deg, #15d8ff 0%, #55f4c1 100%); }
.theme-orange { background: linear-gradient(135deg, #ffca7b 0%, #ff7a2f 100%); }
.theme-red    { background: linear-gradient(135deg, #470000 0%, #d60d0d 100%); }
.theme-gold   { background: linear-gradient(135deg, #ffd43b 0%, #ea9100 100%); }
.theme-brown  { background: linear-gradient(135deg, #b1733d 0%, #62381b 100%); }
.theme-amber  { background: linear-gradient(135deg, #aa6e24 0%, #6f4012 100%); }
.theme-navy   { background: linear-gradient(135deg, #355eff 0%, #071633 100%); }

/* Content box */

.content-box {
    background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
    border-radius: 24px;
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-soft);
}

.content-box h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.content-updated {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.content-box p {
    margin: 0;
    max-width: 900px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.78;
    font-weight: 400;
}

.content-hidden {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

.content-hidden.is-open {
    opacity: 1;
    margin-top: 14px;
}

.content-hidden-inner {
    overflow: hidden;
}

.content-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    border: 0;
    border-radius: 12px;
    background: var(--panel-2);
    color: var(--text);
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), filter var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 22%, transparent);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 28%, transparent);
    filter: brightness(1.04);
}

/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    color: var(--text-muted);
    font-size: 20px;
    transition: transform 280ms cubic-bezier(.22, .61, .36, 1), color 280ms cubic-bezier(.22, .61, .36, 1);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--text);
}

.faq-answer {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer-inner {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.76;
    padding: 0 20px 18px;
}

/* Reviews */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.20);
    filter: brightness(1.04);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    font-size: 15px;
    line-height: 1;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.review-name {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.review-date {
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted);
    font-weight: 500;
}

.review-text {
    font-size: 15px;
    line-height: 1.72;
    color: var(--text-soft);
    max-width: 980px;
}

/* Footer */

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    background: var(--bg-mid);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 22px 18px 28px;
    color: var(--text-dim);
    font-size: 14px;
    text-align: center;
}

/* Mobile */

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .top-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .top-nav {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-inner,
    .footer-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .game-card {
        flex-basis: 154px;
        width: 154px;
    }

    .game-cover {
        height: 178px;
    }

    .game-cover-title {
        font-size: 21px;
    }

    .content-box {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .content-box h2 {
        font-size: 23px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-actions .circle-btn {
        display: none;
    }

    .review-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .review-head {
        gap: 10px;
        margin-bottom: 12px;
    }

    .review-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 14px;
    }

    .review-name {
        font-size: 13px;
    }

    .review-date {
        font-size: 12px;
    }

    .review-text {
        font-size: 14px;
    }
}

.content-html p {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.78;
    font-weight: 400;
}

.content-html p:last-child {
    margin-bottom: 0;
}

.content-html h2,
.content-html h3 {
    margin: 26px 0 14px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.content-html h2 {
    font-size: 26px;
}

.content-html h3 {
    font-size: 22px;
}

.content-html strong {
    color: var(--text);
    font-weight: 800;
}

.content-html ul,
.content-html ol {
    margin: 0 0 16px 20px;
    color: var(--text-soft);
}

.content-html li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-banner {
    margin: 18px 0 18px;
}

.content-banner-link {
    display: block;
    text-decoration: none;
}

.content-banner-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
    .content-banner {
        margin: 16px 0;
    }

    .content-banner-image {
        border-radius: 14px;
    }
}

h1,
.content-box h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

@media (max-width: 768px) {
    h1,
    .content-box h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    h1,
    .content-box h1 {
        font-size: 24px;
    }
}