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

:root {
    --primary: #ff3333;
    --primary-dark: #cc0000;
    --accent: #ff6600;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 25%, #0a0a0a 50%, #001a00 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,0,0,0.03)" d="M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,138.7C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: -1;
}

/* Glass эффект */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    padding: 12px 20px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 1.1em;
    font-weight: 900;
    background: linear-gradient(135deg, #ff3333, #ff6666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.logo-chapter {
    font-size: 0.55em;
    background: linear-gradient(135deg, #ff6600, #ff3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 15px 40px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: clamp(2em, 6vw, 4.5em);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff0000, #ff3333, #ff6600);
    background-size: 200% 200%;
    animation: titleGlow 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 15px;
    line-height: 1.2;
}

@keyframes titleGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.title-small {
    display: block;
    font-size: 0.3em;
    margin-bottom: 10px;
}

.title-chapter {
    display: block;
    font-size: 0.4em;
    margin-top: 10px;
}

.subtitle {
    font-size: clamp(0.9em, 2vw, 1.3em);
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
    padding: 12px 20px;
    display: inline-block;
    max-width: 90%;
}

.release-badge {
    display: inline-block;
    padding: 12px 25px;
    font-size: clamp(0.85em, 1.5vw, 1.2em);
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
    max-width: 90%;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

/* Инфо карточки */
.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.info-card i {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
}

.info-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-card p {
    font-size: 0.9em;
    line-height: 1.5;
}

/* Секции */
.features-section,
.trailer-section,
.download-section,
.speedrunners-section {
    padding: 50px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8em, 4vw, 3em);
    font-weight: 900;
    margin-bottom: 40px;
    padding: 12px 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #ff3333, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    margin-right: 10px;
}

/* Сетка особенностей */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature {
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--accent);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}

.feature h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.85em;
    line-height: 1.5;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Трейлер */
.trailer-container {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trailer-placeholder {
    animation: fadeIn 1s ease;
}

.play-button {
    font-size: 4em;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.play-button:hover {
    transform: scale(1.2);
    color: #ff0000;
}

.trailer-placeholder p {
    font-size: 0.9em;
    margin-top: 10px;
}

.trailer-date {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 5px;
}

/* Обёртка для видео */
.trailer-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.trailer-note {
    margin-top: 15px;
    font-size: 0.85em;
    opacity: 0.7;
    text-align: center;
    color: #aaa;
}

.trailer-note i {
    color: var(--accent);
    margin-right: 5px;
}

/* ==================== */
/* БЛОК СПИДРАНЕРОВ     */
/* ==================== */

.speedrunners-top3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.speedrunner-card {
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    max-width: 250px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.speedrunner-card:hover {
    transform: translateY(-8px);
}

.speedrunner-card.gold {
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.speedrunner-card.silver {
    border: 2px solid rgba(192, 192, 192, 0.4);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.15);
}

.speedrunner-card.bronze {
    border: 2px solid rgba(205, 127, 50, 0.4);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.15);
}

.rank-badge {
    font-size: 1.4em;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.runner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.speedrunner-card.gold .runner-avatar {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    width: 90px;
    height: 90px;
}

.speedrunner-card.silver .runner-avatar {
    border-color: rgba(192, 192, 192, 0.5);
}

.speedrunner-card.bronze .runner-avatar {
    border-color: rgba(205, 127, 50, 0.5);
}

.runner-name {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.speedrunner-card.gold .runner-name {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.runner-time {
    font-size: 1.4em;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
    letter-spacing: 1px;
}

.view-all-container {
    margin-top: 35px;
    text-align: center;
}

.view-all-btn {
    padding: 14px 35px;
    font-size: 1.05em;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}

.view-all-btn i {
    margin-right: 8px;
}

/* Кнопка "Как сюда попасть" на главной */
.how-to-join-container {
    margin-top: 20px;
    text-align: center;
}

.how-to-join-btn {
    padding: 12px 30px;
    font-size: 0.95em;
    font-weight: 700;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
}

.how-to-join-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.how-to-join-btn i {
    margin-right: 8px;
}

/* Кнопка в модалке */
.how-to-join-modal {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.how-to-join-btn-modal {
    padding: 12px 30px;
    font-size: 0.95em;
    font-weight: 700;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
}

.how-to-join-btn-modal:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.how-to-join-btn-modal i {
    margin-right: 8px;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 1.6em;
    font-weight: 900;
}

.modal-header h2 i {
    color: #FFD700;
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--light);
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Модалка "Как попасть" */
.how-to-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1em;
    flex-shrink: 0;
}

.step-icon {
    font-size: 1.8em;
    color: var(--accent);
    flex-shrink: 0;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}

.step-card h3 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-card p {
    font-size: 0.85em;
    opacity: 0.8;
    line-height: 1.4;
}

.tg-link {
    color: #44aaff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tg-link:hover {
    color: #66ccff;
    text-shadow: 0 0 10px rgba(68, 170, 255, 0.5);
}

/* Табы */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Список лидеров */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.leaderboard-row .rank {
    font-size: 1.2em;
    font-weight: 900;
    min-width: 30px;
    text-align: center;
}

.leaderboard-row .rank.top1 { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.leaderboard-row .rank.top2 { color: #C0C0C0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.5); }
.leaderboard-row .rank.top3 { color: #CD7F32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }

.leaderboard-row .small-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.leaderboard-row .row-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95em;
}

.leaderboard-row .row-time {
    font-weight: 900;
    color: var(--accent);
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

/* Секция загрузки */
.download-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.download-card {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.card-header {
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.card-header.beta {
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.2), rgba(0, 50, 200, 0.2));
}

.card-header.release {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(200, 0, 0, 0.2));
}

.card-header h3 {
    font-size: 1.6em;
    font-weight: 900;
    margin-bottom: 8px;
}

.version {
    font-size: 1em;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.card-body {
    padding: 25px 20px;
}

.card-body > p {
    font-size: 0.95em;
    margin-bottom: 15px;
    text-align: center;
}

.features-list {
    list-style: none;
    margin: 15px 0;
    text-align: left;
}

.features-list li {
    padding: 6px 0;
    color: #ccc;
    font-size: 0.9em;
}

.features-list i {
    color: #00ff00;
    margin-right: 8px;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.beta-btn {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: white;
    animation: glowBlue 2s ease-in-out infinite;
}

@keyframes glowBlue {
    0% { box-shadow: 0 0 5px rgba(0, 100, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 100, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 100, 255, 0.5); }
}

.beta-btn:hover {
    background: linear-gradient(135deg, #0088ff, #0066ff);
    transform: scale(1.03);
}

.release-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    position: relative;
}

.release-btn:not(.disabled) {
    animation: glowRed 2s ease-in-out infinite;
}

@keyframes glowRed {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
}

.release-btn.disabled {
    background: linear-gradient(135deg, #444, #333);
    cursor: not-allowed;
    opacity: 0.8;
}

.release-btn:not(.disabled):hover {
    background: linear-gradient(135deg, #ff5555, #ff0000);
    transform: scale(1.03);
}

.file-size {
    text-align: center;
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 8px;
}

/* Футер */
.footer {
    margin: 40px 15px 20px;
    max-width: 1200px;
    padding: 25px 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.8;
    font-size: 0.85em;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--light);
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

/* Частицы */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ==================== */
/* РАЗДЕЛ ОБНОВЛЕНИЙ   */
/* ==================== */

.updates-section {
    padding: 50px 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.updates-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.update-post {
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
}

.update-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.post-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-username {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--light);
}

.post-time {
    font-size: 0.75em;
    opacity: 0.6;
    margin-top: 2px;
}

.post-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.post-badge.bug {
    background: rgba(255, 50, 50, 0.2);
    color: #ff5555;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

.post-badge.update {
    background: rgba(0, 150, 255, 0.2);
    color: #44aaff;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.post-badge.change {
    background: rgba(255, 180, 0, 0.2);
    color: #ffbb33;
    border: 1px solid rgba(255, 180, 0, 0.3);
}

.post-content {
    margin-bottom: 15px;
}

.post-content p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ddd;
}

.post-image {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.post-image img:hover {
    transform: scale(1.02);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-reactions {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 8px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

.reaction-btn.active {
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 50, 50, 0.4);
    color: #ff5555;
    animation: popReaction 0.4s ease;
}

.reaction-btn.active[data-reaction="fire"] {
    background: rgba(255, 150, 0, 0.2);
    border-color: rgba(255, 150, 0, 0.4);
    color: #ff9922;
}

.reaction-btn.active[data-reaction="skull"] {
    background: rgba(200, 200, 200, 0.2);
    border-color: rgba(200, 200, 200, 0.4);
    color: #cccccc;
}

@keyframes popReaction {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.reaction-count {
    font-size: 0.9em;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.85em;
}

.post-views i {
    font-size: 0.9em;
}

/* ==================== */
/* МОБИЛЬНАЯ АДАПТАЦИЯ */
/* ==================== */

@media (max-width: 1024px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.8em;
    }

    .download-cards {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 5px;
        padding: 10px 15px;
        width: 98%;
    }

    .nav-container {
        flex-direction: column;
        gap: 8px;
    }

    .logo {
        justify-content: center;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 1em;
    }

    .nav-links {
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.75em;
        padding: 4px 6px;
    }

    .hero {
        padding: 120px 10px 30px;
        min-height: auto;
    }

    .title {
        padding: 10px;
        letter-spacing: 1px;
    }

    .subtitle {
        padding: 10px 15px;
    }

    .release-badge {
        padding: 10px 18px;
    }

    .game-info {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 10px;
    }

    .info-card {
        padding: 25px 15px;
    }

    .info-card i {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .info-card h3 {
        font-size: 1.2em;
    }

    .info-card p {
        font-size: 0.85em;
    }

    .features-section,
    .trailer-section,
    .download-section,
    .speedrunners-section {
        padding: 40px 10px;
    }

    .section-title {
        margin-bottom: 30px;
        padding: 10px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature {
        padding: 25px 15px;
    }

    .feature-icon {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .feature h3 {
        font-size: 1.1em;
    }

    .feature p {
        font-size: 0.8em;
    }

    .trailer-container {
        min-height: 200px;
        padding: 20px 15px;
    }

    .play-button {
        font-size: 3em;
    }

    .speedrunners-top3 {
        gap: 15px;
    }

    .speedrunner-card {
        min-width: 150px;
        padding: 20px 15px;
    }

    .speedrunner-card.gold .runner-avatar {
        width: 70px;
        height: 70px;
    }

    .runner-avatar {
        width: 60px;
        height: 60px;
    }

    .download-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .download-card {
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }

    .card-header h3 {
        font-size: 1.4em;
    }

    .card-body {
        padding: 20px 15px;
    }

    .download-btn {
        padding: 12px 15px;
        font-size: 1em;
    }

    .modal-content {
        padding: 20px;
        max-height: 85vh;
    }

    .modal-header h2 {
        font-size: 1.3em;
    }

    .leaderboard-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .leaderboard-row .row-name {
        font-size: 0.85em;
    }

    .leaderboard-row .row-time {
        font-size: 0.95em;
    }

    .footer {
        margin: 30px 10px 15px;
        padding: 20px 15px;
    }

    .footer-content p {
        font-size: 0.75em;
    }

    .social-links a {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 0;
        border-radius: 0 0 16px 16px;
        width: 100%;
    }

    .logo-img {
        width: 25px;
        height: 25px;
    }

    .logo-text {
        font-size: 0.85em;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 0.7em;
    }

    .hero {
        padding: 110px 8px 25px;
    }

    .title {
        font-size: clamp(1.6em, 7vw, 2.5em);
        padding: 8px;
    }

    .subtitle {
        font-size: 0.8em;
        padding: 8px 12px;
    }

    .release-badge {
        font-size: 0.75em;
        padding: 8px 15px;
    }

    .game-info,
    .features-grid {
        gap: 12px;
    }

    .info-card,
    .feature {
        padding: 20px 12px;
    }

    .section-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .trailer-container {
        min-height: 180px;
    }

    .play-button {
        font-size: 2.5em;
    }

    .speedrunners-top3 {
        flex-direction: column;
        align-items: center;
    }

    .speedrunner-card {
        max-width: 280px;
        width: 100%;
    }

    .download-card {
        max-width: 100%;
    }

    .card-header {
        padding: 20px 15px;
    }

    .card-header h3 {
        font-size: 1.2em;
    }

    .card-body {
        padding: 15px 12px;
    }

    .features-list li {
        font-size: 0.8em;
        padding: 4px 0;
    }

    .download-btn {
        padding: 10px 12px;
        font-size: 0.9em;
        border-radius: 8px;
    }

    .file-size {
        font-size: 0.7em;
    }

    .footer {
        margin: 20px 8px 10px;
        padding: 15px 10px;
    }
}

/* Фикс для кнопок на Onreza */
.how-to-join-btn,
.how-to-join-btn-modal {
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.how-to-join-container,
.how-to-join-modal {
    position: relative;
    z-index: 50;
}