:root {

    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.95);


    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-highlight: #38bdf8;


    --primary-blue: #3b82f6;
    --primary-hover: #2563eb;
    --accent-teal: #14b8a6;


    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --glow: 0 0 15px rgba(59, 130, 246, 0.15);

    --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}


.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}


header {
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-teal);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-blue);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}


.burger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        background-color: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        border-left: 1px solid var(--border-color);
        transition: 0.4s ease;
        padding: 40px;
        z-index: 101;
    }

    .nav-menu.active {
        right: 0;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}


.hero {

    background:
        radial-gradient(circle at top right, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95)),
        url('../img/hero.png') center center / cover no-repeat;

    padding: 100px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-muted); 
}

.hero .small-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 20px;
    display: block;
}


.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

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

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
}

.card h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-muted);
}

.card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.card ul li i {
    margin-right: 8px;
}


.content-block {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.content-block p {
    color: var(--text-muted);
}


.form-box {
    max-width: 500px;
    margin: 60px auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkbox-group label a {
    color: var(--primary-blue);
}

.error-msg {
    color: #f87171;
    font-size: 0.85rem;
    display: none;
    margin-top: 8px;
}


details {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin: 0;
}


footer {
    background-color: #020617;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-img {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.footer-img img {
    height: 70px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}



.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.warning-icon {
    font-size: 2rem;
    color: #ef4444;
    font-weight: bold;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.overlay-content {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.overlay-content h2 {
    color: var(--text-main);
    margin-bottom: 15px;
}

.overlay-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--primary-blue);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
    padding: 25px;
    z-index: 9000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
}


.game-rules {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color);
    padding: 15px !important;
    border-radius: 8px;
}

.game-meta {
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

.content-block p {
    margin-bottom: 15px;
    text-align: justify;
}

.game-rules {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.game-rules strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 8px;
}

.game-rules ul {
    padding-left: 20px;
    list-style: square;
    margin: 0;
    color: var(--text-muted);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 40px 0;
    font-size: 0.9rem;
}

.cookie-table th {
    text-align: left;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-blue);
    border-bottom: 2px solid var(--border-color);
}

.cookie-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: top;
}

.cookie-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.section-title {
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}