:root {
    --bg: #0b1120;
    --panel: rgba(17, 24, 39, 0.94);
    --panel-strong: rgba(15, 23, 42, 0.98);
    --line: rgba(148, 163, 184, 0.14);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --primary: #38bdf8;
    --accent: #22c55e;
    --shadow: 0 28px 70px rgba(2, 8, 23, 0.42);
    --wrap: min(1280px, calc(100% - 24px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 14% 10%, rgba(56, 189, 248, 0.16), transparent 18%),
        radial-gradient(circle at 84% 12%, rgba(168, 85, 247, 0.1), transparent 16%),
        linear-gradient(180deg, #080d18 0%, #0b1120 40%, #070d18 100%);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: var(--wrap);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(7, 13, 24, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-row,
.footer-top,
.footer-bottom,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-row {
    min-height: 68px;
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(34, 197, 94, 0.14));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(56, 189, 248, 0.08);
}

.brand-mark img {
    width: 26px;
    height: 26px;
}

.header-nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.header-nav a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.footer-links a:hover {
    color: var(--text);
}

main {
    padding: 20px 0 40px;
}

.section {
    margin-top: 18px;
    scroll-margin-top: 90px;
}

.hero,
.panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 28%);
    box-shadow: var(--shadow);
}

.hero {
    padding: 24px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
        linear-gradient(120deg, transparent 0%, rgba(56, 189, 248, 0.08) 32%, transparent 60%, rgba(34, 197, 94, 0.08) 84%, transparent 100%);
    pointer-events: none;
}

.hero-content,
.panel-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.16);
    color: #d6f5ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
summary strong {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
}

h1 {
    margin-top: 14px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.92;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 0.98;
}

h3 {
    font-size: 1rem;
    line-height: 1.18;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.hero-description {
    max-width: 62ch;
    margin-top: 14px;
    color: var(--muted-strong);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    color: #04111d;
    box-shadow: 0 16px 34px rgba(56, 189, 248, 0.18);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.14);
    color: var(--text);
}

.panel {
    padding: 22px;
}

.panel-head {
    align-items: end;
    margin-bottom: 18px;
}

.panel-copy {
    max-width: 58ch;
}

.panel-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-copy h2 {
    margin-top: 8px;
}

.panel-copy p {
    margin-top: 10px;
}

.panel-link {
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
}

.panel-link:hover {
    color: var(--text);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.top-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 28%);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), transparent 36%, transparent 68%, rgba(34, 197, 94, 0.14));
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.24);
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.34), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card a {
    display: block;
    padding: 10px;
    text-decoration: none;
}

.game-thumb {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.08 / 1;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.06);
}

.game-copy {
    display: grid;
    gap: 10px;
    padding: 12px 4px 4px;
}

.game-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-type,
.game-rating {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-type {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
}

.game-rating {
    background: rgba(56, 189, 248, 0.12);
    color: #d9f6ff;
}

.game-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.game-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    flex: 0 0 auto;
    transition: transform 0.2s ease, color 0.2s ease;
}

.game-card:hover .game-action {
    transform: translateX(3px);
    color: var(--text);
}

.faq-grid {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span:last-child {
    color: var(--muted);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary span:last-child {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 18px;
}

.site-footer {
    margin-top: 18px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow);
}

.footer-top {
    align-items: start;
}

.footer-brand {
    max-width: 38ch;
}

.footer-brand .brand {
    margin-bottom: 12px;
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1160px) {
    .top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .header-row,
    .footer-top,
    .footer-bottom,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-nav,
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(100% - 20px, 100%);
    }

    .hero,
    .panel,
    .site-footer {
        padding: 16px;
        border-radius: 22px;
    }

    .game-grid,
    .top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .game-grid,
    .top-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-btn {
        width: 100%;
    }
}
