:root {
    --tp-blue-900: #083b8f;
    --tp-blue-800: #0d57b7;
    --tp-blue-700: #1382df;
    --tp-blue-600: #22a9f2;
    --tp-blue-100: #e8f6ff;

    --tp-yellow-500: #ffcc18;
    --tp-yellow-400: #ffd84a;
    --tp-orange-400: #ff9d2f;

    --tp-navy: #08254f;
    --tp-dark: #0b1730;
    --tp-text: #13233f;
    --tp-muted: #56667f;
    --tp-white: #ffffff;
    --tp-bg: #f4fbff;
    --tp-card: #ffffff;
    --tp-border: #cfe6f6;

    --success: #166534;
    --success-bg: #dcfce7;
    --error: #991b1b;
    --error-bg: #fee2e2;

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 28px;

    --shadow-soft: 0 10px 30px rgba(8, 37, 79, 0.10);
    --shadow-card: 0 18px 40px rgba(8, 37, 79, 0.14);
    --shadow-button: 0 8px 18px rgba(8, 37, 79, 0.18);

    --container: 1200px;
    --header-height: 96px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--tp-text);
    background:
        radial-gradient(circle at top, rgba(34, 169, 242, 0.08), transparent 35%),
        linear-gradient(180deg, #f0fbff 0%, #f7fcff 100%);
    line-height: 1.6;
}

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

a {
    color: var(--tp-blue-800);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

.narrow {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--tp-yellow-500);
    box-shadow: 0 8px 25px rgba(8, 37, 79, 0.08);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 74px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--tp-navy);
    background: transparent;
    transition: all 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--tp-yellow-500);
    color: var(--tp-dark);
    box-shadow: var(--shadow-button);
}

.mobile-nav-toggle {
    display: none;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--tp-yellow-500);
    color: var(--tp-dark);
    font-weight: 800;
    cursor: pointer;
}

.site-main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 64px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.14), transparent 36%),
        repeating-radial-gradient(circle at center, rgba(255,255,255,0.03) 0 14px, transparent 14px 32px),
        linear-gradient(135deg, #0f69d8 0%, #14a3ef 55%, #1dc8f7 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 15%, transparent 85%, rgba(255,255,255,0.06) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
}

.hero-text {
    max-width: 760px;
}

.hero-text h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.02;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 4px 0 rgba(8, 37, 79, 0.45),
        0 10px 25px rgba(8, 37, 79, 0.25);
}

.hero-text p {
    margin: 0 0 26px;
    max-width: 700px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.96);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.section {
    padding: 60px 0;
}

.alt-bg {
    background: linear-gradient(180deg, #edf9ff 0%, #f8fdff 100%);
}

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

.section-head h2,
.section h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--tp-navy);
}

.section-head a {
    font-weight: 800;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.game-card {
    position: relative;
    background: var(--tp-card);
    border: 2px solid rgba(19, 130, 223, 0.10);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(8, 37, 79, 0.18);
}

.game-card-link {
    display: block;
    color: inherit;
}

.game-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #b9e8ff, #82d6ff);
    border-bottom: 2px solid rgba(8, 37, 79, 0.06);
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-content {
    padding: 18px 18px 20px;
}

.game-content h3 {
    margin: 10px 0 8px;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--tp-navy);
}

.game-content p {
    margin: 0;
    color: var(--tp-muted);
}

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

.category-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
    color: inherit;
    border-radius: var(--radius-md);
    border: 2px solid rgba(19, 130, 223, 0.12);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 204, 24, 0.65);
}

.category-card h3 {
    margin: 0 0 8px;
    color: var(--tp-navy);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e4f4ff;
    color: var(--tp-blue-900);
    font-size: 0.84rem;
    font-weight: 900;
    border: 1px solid rgba(19, 130, 223, 0.12);
}

.badge-featured {
    background: linear-gradient(180deg, var(--tp-yellow-400), var(--tp-yellow-500));
    color: var(--tp-dark);
    border-color: rgba(8, 37, 79, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.18s ease;
    box-shadow: var(--shadow-button);
}

.btn-primary {
    background: linear-gradient(180deg, var(--tp-yellow-400), var(--tp-yellow-500));
    color: var(--tp-dark);
}

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

.btn-secondary {
    background: #ffffff;
    color: var(--tp-blue-900);
}

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

.btn-large {
    min-height: 54px;
    padding: 0 26px;
    font-size: 1.02rem;
}

.game-detail-head {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: start;
}

.game-detail-thumb img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.game-detail-meta h1 {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    color: var(--tp-navy);
}

.lead {
    font-size: 1.1rem;
    color: var(--tp-muted);
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px;
}

.meta-list li {
    margin-bottom: 8px;
}

.game-frame-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid rgba(19, 130, 223, 0.10);
    box-shadow: var(--shadow-card);
}

.search-form,
.contact-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid rgba(19, 130, 223, 0.10);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 220px 140px;
    gap: 12px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    border: 2px solid var(--tp-border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--tp-text);
    background: #fff;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--tp-blue-700);
    box-shadow: 0 0 0 4px rgba(19, 130, 223, 0.10);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 800;
    color: var(--tp-navy);
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
}

.empty-state {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(19, 130, 223, 0.18);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.rich-text p:first-child {
    margin-top: 0;
}

.site-footer {
    margin-top: 60px;
    background:
        linear-gradient(180deg, #0b2f66 0%, #08254f 100%);
    color: #edf7ff;
    border-top: 4px solid var(--tp-yellow-500);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    padding: 42px 0 24px;
}

.footer-brand p {
    max-width: 480px;
    color: rgba(255,255,255,0.86);
}

.footer-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 14px;
}

.site-footer h3 {
    margin-top: 0;
    color: #fff;
}

.site-footer a {
    color: #d9ecff;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding: 18px 0 24px;
    color: rgba(255,255,255,0.74);
    font-size: 0.95rem;
}

.content-page h1,
.section h1 {
    color: var(--tp-navy);
    line-height: 1.05;
}

@media (max-width: 980px) {
    .game-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-detail-head {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .site-logo {
        height: 58px;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        justify-content: flex-start;
        background: rgba(19, 130, 223, 0.06);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 42px 0;
    }

    .hero {
        padding: 48px 0 42px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .game-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .site-logo {
        height: 52px;
    }
}
.intro-strip {
    padding-top: 26px;
    padding-bottom: 18px;
}

.intro-lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--tp-muted);
    text-align: center;
}