:root {
    --white: #ffffff;
    --surface: #f6f9ff;
    --surface-strong: #eef5ff;
    --blue: #0b63f6;
    --blue-strong: #0849bd;
    --navy: #07204a;
    --navy-soft: #12396f;
    --cyan: #00c2ff;
    --green: #17b26a;
    --yellow: #f5b700;
    --orange: #ff7a1a;
    --red: #ef4444;
    --purple: #7c3aed;
    --text: #11243f;
    --muted: #617089;
    --line: #dce8f8;
    --shadow: 0 20px 60px rgba(7, 32, 74, 0.13);
    --radius: 8px;
    --radius-sm: 6px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 232, 248, 0.75);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 34px rgba(7, 32, 74, 0.08);
    border-color: transparent;
}

.topline {
    background: linear-gradient(90deg, var(--navy), var(--blue-strong));
    color: var(--white);
    font-size: 13px;
}

.topline-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topline span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-shell {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 170px;
}

.brand img,
.footer-logo img {
    width: 170px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--blue);
    background: var(--surface-strong);
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    border: 0;
    padding: 10px 16px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn-login {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 99, 246, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.btn-login:hover {
    border-color: var(--cyan);
    box-shadow: 0 12px 24px rgba(0, 194, 255, 0.15);
}

.btn-register,
.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(11, 99, 246, 0.28);
}

.pulse-glow {
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.42), 0 14px 28px rgba(11, 99, 246, 0.28);
    }
    70% {
        box-shadow: 0 0 0 13px rgba(0, 194, 255, 0), 0 14px 28px rgba(11, 99, 246, 0.28);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 194, 255, 0), 0 14px 28px rgba(11, 99, 246, 0.28);
    }
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--navy);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(0, 194, 255, 0.2), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eaf4ff 50%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 99, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 99, 246, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 92%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 42px;
    min-height: 560px;
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border: 1px solid rgba(11, 99, 246, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: 54px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    margin: 18px 0 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-secondary {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.stat-box {
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(7, 32, 74, 0.06);
}

.stat-box strong {
    display: block;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.2;
}

.stat-box span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(11, 99, 246, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.score-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
}

.score-card i,
.feature-card i,
.category-card i,
.game-card i,
.topic-chip i,
.article-card i {
    font-size: 30px;
}

.score-card h3,
.feature-card h3,
.category-card h3,
.game-card h3,
.article-card h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.25;
}

.score-card p,
.feature-card p,
.category-card p,
.game-card p,
.article-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 800;
}

.section {
    padding: 74px 0;
}

.section-soft {
    background: var(--surface);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 36px;
    line-height: 1.18;
    letter-spacing: 0;
}

.section-heading p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card,
.category-card,
.game-card,
.article-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(7, 32, 74, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card {
    min-height: 220px;
    padding: 22px;
}

.feature-card:hover,
.category-card:hover,
.game-card:hover,
.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(11, 99, 246, 0.3);
    box-shadow: 0 22px 44px rgba(7, 32, 74, 0.1);
}

.feature-card h3 {
    margin-top: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.category-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 22px;
}

.card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 800;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.game-card {
    min-height: 190px;
    padding: 20px;
}

.game-card h3 {
    margin-top: 14px;
    font-size: 20px;
}

.topic-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-weight: 800;
}

.topic-chip i {
    font-size: 16px;
}

.seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.seo-content {
    color: #213656;
    font-size: 17px;
}

.seo-content h2,
.seo-content h3 {
    color: var(--navy);
    line-height: 1.25;
    letter-spacing: 0;
}

.seo-content h2 {
    margin: 0 0 16px;
    font-size: 34px;
}

.seo-content h3 {
    margin: 28px 0 10px;
    font-size: 24px;
}

.seo-content p {
    margin: 0 0 16px;
}

.seo-content a {
    color: var(--blue);
    font-weight: 800;
    border-bottom: 1px solid rgba(11, 99, 246, 0.25);
}

.seo-content ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-sidebar {
    position: sticky;
    top: 132px;
    display: grid;
    gap: 14px;
}

.article-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 16px;
}

.article-card h3 {
    font-size: 17px;
}

.article-card p {
    font-size: 14px;
}

.cta-band {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 194, 255, 0.22), transparent 24%),
        linear-gradient(135deg, var(--navy), var(--blue-strong));
    color: var(--white);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 42px 0;
}

.cta-inner h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0;
}

.cta-inner p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer {
    background: #f8fbff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 0.9fr;
    gap: 30px;
    padding: 52px 0;
}

.footer-brand p,
.footer-col a,
.footer-col span,
.footer-link {
    color: var(--muted);
}

.footer-brand p {
    margin: 14px 0 0;
}

.footer-col h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 18px;
}

.footer-col a,
.footer-col span,
.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 9px 0;
    font-weight: 700;
}

.footer-col a:hover,
.footer-link:hover {
    color: var(--blue);
}

.footer-link {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.site-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    max-width: min(360px, calc(100vw - 36px));
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--navy);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 800;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-notice-error {
    background: var(--red);
}

.site-notice-info {
    background: var(--blue);
}

.icon-blue,
.fa-futbol,
.fa-shield-halved {
    color: var(--blue);
}

.icon-cyan,
.fa-bolt,
.fa-fish-fins {
    color: var(--cyan);
}

.icon-green,
.fa-circle-check,
.fa-headset {
    color: var(--green);
}

.icon-yellow,
.fa-trophy,
.fa-coins {
    color: var(--yellow);
}

.icon-orange,
.fa-fire,
.fa-dice {
    color: var(--orange);
}

.icon-red,
.fa-heart,
.fa-rocket {
    color: var(--red);
}

.icon-purple,
.fa-crown,
.fa-gem {
    color: var(--purple);
}

.icon-navy,
.fa-chart-line,
.fa-layer-group {
    color: var(--navy-soft);
}

.fa-basketball,
.fa-volleyball,
.fa-baseball-bat-ball {
    color: #ff8a00;
}

.fa-dice-six,
.fa-clover,
.fa-cards-blank {
    color: #7c3aed;
}

.fa-ticket,
.fa-receipt,
.fa-list-ol {
    color: #0ea5e9;
}

.fa-user-shield,
.fa-lock,
.fa-fingerprint {
    color: #16a34a;
}

@media (max-width: 1100px) {
    .nav-shell {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .brand {
        order: 1;
    }

    .header-actions {
        order: 3;
        justify-content: flex-end;
    }

    .main-nav {
        position: fixed;
        top: 116px;
        left: 0;
        right: 0;
        display: grid;
        align-content: start;
        gap: 0;
        height: calc(100vh - 116px);
        padding: 18px;
        background: var(--white);
        border-top: 1px solid var(--line);
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        min-height: 50px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .main-nav a.is-active::after {
        display: none;
    }

    .hero-inner,
    .seo-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 680px;
    }

    .feature-grid,
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .topline-inner {
        justify-content: center;
    }

    .topline-inner span + span {
        display: none;
    }

    .nav-shell {
        min-height: 74px;
        grid-template-columns: auto auto;
        gap: 10px;
    }

    .brand img,
    .footer-logo img {
        width: 132px;
    }

    .header-actions {
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 12px;
    }

    .header-actions .btn {
        flex: 1;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .nav-toggle {
        justify-self: end;
    }

    .main-nav {
        top: 151px;
        height: calc(100vh - 151px);
    }

    .hero-inner {
        min-height: auto;
        padding: 46px 0;
        gap: 28px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats,
    .category-grid,
    .feature-grid,
    .game-grid,
    .seo-sidebar,
    .footer-grid,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .score-card {
        grid-template-columns: 42px 1fr;
    }

    .score-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading h2,
    .seo-content h2,
    .cta-inner h2 {
        font-size: 28px;
    }

    .seo-content {
        font-size: 16px;
    }

    .cta-inner .btn {
        width: 100%;
    }

    .footer-bottom-inner {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 8px;
    }
}
