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

body {
    background: #0a0a0a;
    color: #ddd;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.blood-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(40,0,0,0.3), rgba(0,0,0,0.9));
    pointer-events: none;
    z-index: 0;
}

.navbar {
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid #300;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c44;
    text-shadow: 0 0 5px red;
}

.nav-links a {
    color: #bbb;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #c44;
    text-shadow: 0 0 3px red;
}

.admin-link {
    background: #200;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

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

section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    background: #0a0a0a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('screenshots/1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.game-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.bloody {
    color: #c44;
    text-shadow: 0 0 10px red, 0 0 20px darkred;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; text-shadow: 0 0 20px red; }
}

.tagline {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #200;
    color: #c44;
    text-decoration: none;
    border: 1px solid #c44;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.download-btn:hover {
    background: #c44;
    color: #000;
    box-shadow: 0 0 15px red;
    transform: scale(1.05);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #c44;
    border-bottom: 2px solid #300;
    display: inline-block;
    width: auto;
}

.story-box {
    background: rgba(30,0,0,0.5);
    border-left: 4px solid #c44;
    padding: 2rem;
    border-radius: 8px;
    line-height: 1.8;
}

.story-box p {
    margin-bottom: 1rem;
}

/* Карусель */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(200,0,0,0.3);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slides img {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #c44;
    border: 1px solid #c44;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: #c44;
    color: #000;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-dots {
    text-align: center;
    margin-top: 1rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #555;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: #c44;
    box-shadow: 0 0 5px red;
}

/* Форма обратной связи */
.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20,0,0,0.7);
    padding: 2rem;
    border-radius: 12px;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: #111;
    border: 1px solid #300;
    color: #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.submit-btn {
    background: #200;
    color: #c44;
    border: 1px solid #c44;
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #c44;
    color: #000;
}

.status-message {
    margin-top: 1rem;
    text-align: center;
}

/* НОВОСТИ - СТИЛЬ КАРТОЧЕК */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.news-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0a0a 100%);
    border: 1px solid #3a0a0a;
    border-radius: 0px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Кровавый эффект при наведении */
.news-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200,0,0,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    border-color: #c44;
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(200,0,0,0.3);
}

/* Кровавая капля в углу */
.news-card::after {
    content: '🩸';
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.9rem;
    opacity: 0.25;
    transition: opacity 0.3s;
    pointer-events: none;
}

.news-card:hover::after {
    opacity: 0.7;
    transform: scale(1.1);
}

.news-title {
    color: #c44;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    border-left: 3px solid #c44;
    padding-left: 12px;
    transition: 0.3s;
}

.news-card:hover .news-title {
    text-shadow: 0 0 5px rgba(200,0,0,0.5);
}

.news-date {
    font-size: 0.75rem;
    color: #6a4a4a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
}

.news-card p {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Админская панель - стиль */
.admin-section {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.admin-section .container {
    max-width: 900px;
}

.admin-login {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0a0a 100%);
    border: 2px solid #c44;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    margin: 2rem auto;
    box-shadow: 0 0 30px rgba(200, 0, 0, 0.2);
}

.admin-login h2 {
    color: #c44;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px darkred;
}

.admin-login input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    background: #1a1a1a;
    border: 1px solid #c44;
    border-radius: 8px;
    color: #c44;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-login input:focus {
    outline: none;
    border-color: #f66;
    box-shadow: 0 0 10px rgba(200, 0, 0, 0.5);
    background: #111;
}

.admin-login input::placeholder {
    color: #5a3a3a;
}

.admin-login .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #300 0%, #500 100%);
    border: 1px solid #c44;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-login .submit-btn:hover {
    background: #c44;
    color: #000;
    box-shadow: 0 0 15px red;
    transform: scale(1.02);
}

.error-message {
    color: #c44;
    text-align: center;
    margin-top: 1rem;
    padding: 8px;
    background: rgba(200, 0, 0, 0.1);
    border-radius: 6px;
}

.admin-card {
    background: linear-gradient(135deg, #0f0f0f 0%, #150505 100%);
    border: 1px solid #300;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.admin-card h2 {
    color: #c44;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-left: 4px solid #c44;
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-card input[type="text"],
.admin-card textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    background: #1a1a1a;
    border: 1px solid #400;
    border-radius: 8px;
    color: #ddd;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-card input[type="text"]:focus,
.admin-card textarea:focus {
    outline: none;
    border-color: #c44;
    box-shadow: 0 0 8px rgba(200, 0, 0, 0.3);
    background: #111;
}

.admin-card textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-card .submit-btn {
    background: linear-gradient(135deg, #2a0a0a 0%, #3a0a0a 100%);
    border: 1px solid #c44;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-card .submit-btn:hover {
    background: #c44;
    color: #000;
    transform: scale(1.02);
}

#adminNewsList {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

#adminNewsList::-webkit-scrollbar {
    width: 8px;
}

#adminNewsList::-webkit-scrollbar-track {
    background: #1a0a0a;
    border-radius: 4px;
}

#adminNewsList::-webkit-scrollbar-thumb {
    background: #c44;
    border-radius: 4px;
}

.admin-news-item {
    background: rgba(30, 0, 0, 0.6);
    border: 1px solid #300;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.admin-news-item:hover {
    border-color: #c44;
    box-shadow: 0 2px 8px rgba(200, 0, 0, 0.2);
}

.admin-news-item strong {
    color: #c44;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.admin-news-item small {
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.8rem;
}

.admin-news-item p {
    color: #bbb;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.admin-news-item button {
    background: #1a0a0a;
    border: 1px solid #c44;
    color: #c44;
    padding: 6px 14px;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.admin-news-item button:hover {
    background: #c44;
    color: #000;
    transform: scale(1.02);
}

.admin-news-item button:first-of-type {
    background: #1a0a0a;
}

.admin-news-item button:first-of-type:hover {
    background: #c44;
}

.admin-news-item button:last-of-type {
    border-color: #844;
    color: #a66;
}

.admin-news-item button:last-of-type:hover {
    background: #844;
    color: #000;
    border-color: #a66;
}

.footer {
    background: #000;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #300;
    margin-top: auto;
}

.youtube-link {
    color: #c44;
    text-decoration: none;
    font-size: 1.2rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links a {
        margin: 0 0.8rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 80%;
    }
    
    .carousel-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .admin-card {
        padding: 1.2rem;
    }
    
    .admin-login {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .admin-news-item button {
        margin-bottom: 5px;
    }
    
    /* Адаптация новостей для мобильных */
    .news-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        padding: 1.2rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}