/* === Обнуление и базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background: transparent;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* === Фоновое изображение === */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/fon.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: brightness(0.3);
}

/* === Логотип === */
header {
    padding: 20px;
    position: relative;
    text-align: center;
}

.logo {
    max-width: 300px;
    height: auto;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo img {
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

/* === Навигация (единое меню) === */
.navbar {
    position: relative;
    padding: 10px 0;
    text-align: center;
    z-index: 9;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    font-family: 'Orbitron', sans-serif;
}

/* Подчёркивание */
.navbar li:not(.store-btn) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #6e45e2, #88d3ce);
    transition: width 0.3s ease;
}

.navbar li:not(.store-btn) a:hover::after {
    width: 100%;
}

/* Кнопка "Магазин" */
.navbar .store-btn a {
    background: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    position: relative;
    z-index: 2;
}

.navbar .store-btn a::after {
    display: none !important;
}

.navbar .store-btn a:hover {
    background: linear-gradient(135deg, #6e45e2, #88d3ce) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.7) !important;
}

/* Пульсация */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.navbar li a:hover {
    animation: pulse 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* === Основной контент === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 120px; /* Отступ под логотип + меню */
    padding-bottom: max(env(safe-area-inset-bottom, 20px), 60px);
    align-items: center;
    justify-content: center;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 3px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
}

/* Обёртка для буквы D */
.d-container {
    position: relative;
    display: inline-block;
}

/* RP над буквой D */
.content h1 .rp {
    position: absolute;
    top: -0.8em;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    font-size: 0.4em;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    z-index: 2;
}

.content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 30px 0 40px;
    letter-spacing: 1px;
    position: relative;
}

.content h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e45e2, #88d3ce);
    border-radius: 2px;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Кнопка "Начать играть" */
.start-button {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
}

.start-button:hover {
    background: #ffbb00;
    transform: translateY(-2px);
    animation: pulse 1s infinite;
}

/* === Футер — ТОЧНО КАК В ВАШЕМ КОДЕ === */
.footer-social {
    padding: 0rem 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    text-align: center;
}

.social-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: hue-rotate(30deg);
}

.copyright {
    color: #ccc;
    font-size: 0.85rem;
    padding: 2px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Orbitron', sans-serif;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .logo {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 20px;
        max-width: 200px;
    }

    .logo img {
        height: 32px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        padding: 0 1rem;
    }

    .navbar li a {
        padding: 12px 20px;
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
        font-size: 1rem;
    }

    .main-content {
        padding-top: 100px;
        padding-bottom: max(env(safe-area-inset-bottom, 20px), 50px);
    }

    .content {
        padding: 0 15px;
    }

    .content h1 {
        font-size: 2.5rem;
    }

    .content h1 .rp {
        top: -0.7em;
        font-size: 0.35em;
    }

    .content h2 {
        font-size: 2rem;
    }

    .start-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Футер — мобильная адаптация */
    .social-icon img {
        width: 32px;
        height: 32px;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 2rem;
    }

    .start-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .social-icon img {
        width: 28px;
        height: 28px;
    }

    .copyright {
        font-size: 0.75rem;
        padding: 4px 0;
    }
}