/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0b0b0f;
    color: #e8e8e8;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ===== Layout ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
}

.nav.scrolled {
    background: rgba(11, 11, 15, 0.96);
    padding: 14px 0;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.nav-logo .num {
    color: #ff3c3c;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    transition: color 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu .btn-play {
    background: #ff3c3c;
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.25s, transform 0.2s;
}

.nav-menu .btn-play:hover {
    background: #e02020;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(180, 20, 20, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 20%, rgba(60, 0, 120, 0.1) 0%, transparent 50%),
        #0b0b0f;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" x="20" font-size="60" opacity="0.03" fill="white">♠</text><text y="90" x="60" font-size="40" opacity="0.02" fill="white">♦</text></svg>') repeat;
    background-size: 200px;
    animation: drift 40s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-200px, -200px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-content h1 .accent {
    display: block;
    color: #ff3c3c;
}

.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-cta {
    display: inline-block;
    background: #ff3c3c;
    color: #fff;
    padding: 16px 48px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
}

.hero-cta:hover {
    background: #e02020;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 60, 60, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== About (Home) ===== */
.about {
    padding: 120px 0;
    background: #0f0f14;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    line-height: 1.1;
}

.about-text p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    overflow: hidden;
}

.number-block {
    background: #14141a;
    padding: 40px 30px;
    text-align: center;
}

.number-block .val {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ff3c3c;
    display: block;
    margin-bottom: 6px;
}

.number-block .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}

/* ===== Games Section ===== */
.games {
    padding: 120px 0;
    background: #0b0b0f;
}

.games-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-tile {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-tile:hover {
    transform: scale(1.03);
}

.game-tile .tile-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s;
}

.game-tile:hover .tile-bg {
    transform: scale(1.08);
}

.game-tile .tile-bg img,
.game-tile .tile-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-tile .tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.game-tile .tile-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff3c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
}

.game-tile h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.game-tile p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.game-tile .play-btn {
    display: inline-block;
    margin-top: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
    transition: background 0.25s, border-color 0.25s;
}

.game-tile:hover .play-btn {
    background: #ff3c3c;
    border-color: #ff3c3c;
}

/* ===== Page Header (inner pages) ===== */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(180, 20, 20, 0.08) 0%, transparent 50%),
        #0b0b0f;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
}

/* ===== Games Page Grid ===== */
.games-page {
    padding: 80px 0 120px;
}

.games-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.gp-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #14141a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.3s, transform 0.3s;
}

.gp-card:hover {
    border-color: rgba(255, 60, 60, 0.3);
    transform: translateY(-4px);
}

.gp-card-img {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.gp-card-img img,
.gp-card-img svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gp-card:hover .gp-card-img img,
.gp-card:hover .gp-card-img svg {
    transform: scale(1.05);
}

.gp-card-img .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff3c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 3px;
}

.gp-card-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gp-card-body h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gp-card-body p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 20px;
}

.gp-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.gp-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gp-card-meta i {
    color: #ff3c3c;
    font-size: 0.7rem;
}

.btn-red {
    display: inline-block;
    background: #ff3c3c;
    color: #fff;
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    align-self: flex-start;
}

.btn-red:hover {
    background: #e02020;
    transform: translateY(-1px);
}

/* ===== Contact Page ===== */
.contact {
    padding: 80px 0 120px;
}

.contact-center {
    max-width: 640px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-form {
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 44px;
}

.contact-form h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background: #0b0b0f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #e8e8e8;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #ff3c3c;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 28px;
    transition: border-color 0.3s;
}

.contact-card:hover {
    border-color: rgba(255, 60, 60, 0.3);
}

.contact-card i {
    color: #ff3c3c;
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: block;
}

.contact-card h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(180, 20, 20, 0.08) 0%, transparent 50%),
        #0b0b0f;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 48px 40px;
}

.login-card.hidden {
    display: none;
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .login-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
}

.login-card .login-logo .num {
    color: #ff3c3c;
}

.login-card h2 {
    text-align: center;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.login-card .sub {
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.login-card .field-icon {
    position: relative;
}

.login-card .field-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.login-card .field-icon input {
    padding-left: 42px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.form-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.form-row input[type="checkbox"] {
    accent-color: #ff3c3c;
}

.form-row a {
    color: #ff3c3c;
    font-weight: 500;
}

.btn-full {
    width: 100%;
    padding: 14px;
    background: #ff3c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.25s;
}

.btn-full:hover {
    background: #e02020;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.divider span {
    position: relative;
    background: #14141a;
    padding: 0 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btns button {
    padding: 11px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b0b0f;
    color: #e8e8e8;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.25s;
}

.social-btns button:hover {
    border-color: rgba(255,255,255,0.2);
}

.login-switch {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.login-switch a {
    color: #ff3c3c;
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background: #08080c;
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .nav-logo {
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    max-width: 260px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    transition: color 0.25s;
}

.footer-col a:hover {
    color: #ff3c3c;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: background 0.25s, color 0.25s;
    margin-bottom: 0;
}

.footer-social a:hover {
    background: #ff3c3c;
    border-color: #ff3c3c;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .games-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-page-grid {
        grid-template-columns: 1fr;
    }

    .gp-card {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0b0b0f;
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .games-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .game-tile {
        aspect-ratio: 16/9;
    }

    .gp-card {
        grid-template-columns: 1fr;
    }

    .gp-card-img {
        min-height: 200px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .social-btns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-numbers {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 24px;
    }
}


/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-error {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

/* ===== Required field ===== */
.required {
    color: #ff3c3c;
    font-weight: 700;
}
