/* Font Face Declaration */
@font-face {
    font-family: 'Redemption';
    src: url('Redemtion.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #1c0a0a 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



/* Bullet Trail (optimized, single definition) */
.bullet-trail {
    position: absolute;
    left: 20%;
    top: 55%;
    transform: translateY(-50%);
    width: 60%;
    height: 3px;
    z-index: 1;
}

.bullet {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff1744 0%, #ff5252 50%, #e53935 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px #FF6B6B, 0 0 20px #FFD700;
    opacity: 0;
    animation: bulletFire 1.6s ease-out 1s forwards;
}

.trail-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 23, 68, 0.35) 0%, rgba(229, 57, 53, 0.25) 50%, rgba(255, 23, 68, 0.35) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
    animation: trailGrow 1.6s ease-out 1s forwards;
}

/* Loading Text */
.loading-text {
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
}

.loading-title {
    font-family: 'Redemption', 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 900;
    color: #ff1744;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px #FF6B6B;
    opacity: 0;
    animation: titleAppear 1s ease-out 3s forwards;
    display: block;
    margin-bottom: 2rem;
}

.loading-progress {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff1744 0%, #e53935 50%, #ff1744 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px #FF6B6B;
    animation: progressFill 2s ease-out 3.5s forwards;
}

/* Loading Animations */

@keyframes bulletFire {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(1000px);
    }
}

@keyframes trailGrow {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Redemption', 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f0f 0%, #141414 25%, #1c0a0a 50%, #141414 75%, #0f0f0f 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Redemption', 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    text-rendering: optimizeLegibility;
}

.highlight {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo-subtitle {
    color: #ff1744;
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #aaaaaa);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - РАБОЧАЯ ВЕРСИЯ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #1c0a0a 50%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-background.png') center center/cover no-repeat;
    filter: blur(3px) brightness(0.6) contrast(1.2);
    animation: slowZoom 20s ease-in-out infinite alternate;
    transform: scale(1.1);
    will-change: transform;
    opacity: 1;
    z-index: 1;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.15);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    isolation: isolate;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Redemption', 'Cinzel', serif;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.hero-logo {
    height: 13.5rem;
    width: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
    background-color: transparent !important;
    mix-blend-mode: screen;
    border-radius: 0;
    display: inline-block;
    animation: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75));
}

/* убрана маска, чтобы логотип не пропадал */

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ffffff;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Redemption', 'Inter', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #b71c1c, #c62828);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #b71c1c;
    position: relative;
    overflow: hidden;
    font-family: 'Redemption', 'Cinzel', serif;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, #c62828, #ff1744);
    border-color: #ff1744;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #b71c1c;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Redemption', 'Cinzel', serif;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(229, 57, 53, 0.15);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    border-color: #ff1744;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

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

.stat-item i {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(229, 57, 53, 0.25); }
    50% { box-shadow: 0 0 28px rgba(255, 23, 68, 0.35); }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleInWithBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e53935, transparent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #1c0a0a 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 23, 68, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(229, 57, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: slideInLeft 1s ease-out 0.3s both;
}

.about-image {
    animation: slideInRight 1s ease-out 0.6s both;
}

.section-header {
    animation: fadeInFromBottom 1s ease-out both;
}

.features-grid {
    animation: scaleInWithBounce 1s ease-out 0.2s both;
}

.gallery-grid {
    animation: fadeInFromBottom 1s ease-out 0.3s both;
}

.rules-list {
    animation: slideInFromLeft 1s ease-out 0.2s both;
}

.contact-content {
    animation: slideInFromRight 1s ease-out 0.2s both;
}

.about-text h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-text p {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.feature-item i {
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    background-color: transparent !important;
    mix-blend-mode: lighten;
}

.about-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.35);
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(45deg, #2d1810, #3d2810);
    border: 2px solid #8B0000;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8B0000;
    font-size: 3rem;
}

.image-placeholder span {
    font-size: 1rem;
    margin-top: 1rem;
    color: #ccc;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    margin-top: -50px;
    clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    animation: scaleIn 0.8s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }
.feature-card:nth-child(5) { animation-delay: 1.0s; }
.feature-card:nth-child(6) { animation-delay: 1.2s; }

.feature-card {
    background: linear-gradient(135deg, #121212 0%, #1e0c0c 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(229, 57, 53, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #e53935;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #1e0c0c 0%, #2a1010 100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #c62828, #e53935);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid #e53935;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, #e53935, #ff1744);
    border-color: #ff1744;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.feature-card p {
    color: #ffffff;
    line-height: 1.6;
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d1810 0%, #1a1a1a 100%);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 100%);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(229, 57, 53, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Connect modal customizations */
.connect-content {
    max-width: 900px;
}

.connect-body h2 {
    margin: 0 0 12px 0;
}

.connect-list {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.connect-code {
    background: #000;
    color: #ff1744;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ff1744;
}

.copy-connect {
    margin-left: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.connect-support {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}

.connect-screenshot { margin: 12px 0 18px 0; }
.connect-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.connect-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Connect modal: mobile optimization */
@media (max-width: 768px) {
  .connect-content {
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    padding: calc(16px + env(safe-area-inset-top)) 16px 16px 16px;
    display: flex;
    flex-direction: column;
  }
  .connect-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }
  .close {
    top: calc(8px + env(safe-area-inset-top));
    right: 12px;
    font-size: 32px;
  }
  .connect-list, .connect-support { margin-left: 1rem; }
  .connect-actions { flex-direction: column; }
  .connect-actions .btn { width: 100%; justify-content: center; }
  .connect-img { max-height: 40vh; object-fit: contain; }
}

@media (max-width: 480px) {
  .connect-content { padding: calc(12px + env(safe-area-inset-top)) 12px 12px 12px; }
  .close { font-size: 28px; right: 10px; }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close:hover {
    color: #8B0000;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: #8B0000;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #660000;
    transform: scale(1.1);
}

#imageCounter {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* News Section */
.news {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
    margin-top: -50px;
    clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 69, 19, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: linear-gradient(135deg, #2d1810 0%, #4a2c1a 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #8B4513;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.news-item:hover::before {
    left: 100%;
}

.news-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #e53935;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #220b0b 0%, #2a1010 100%);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.news-date {
    color: #ff8a80;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-content {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-author {
    color: #ff8a80;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-author i {
    color: #e53935;
}

/* News attachments grid */
.news-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.news-attachments img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.news-loading {
    text-align: center;
    padding: 3rem;
    color: #ffffff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(229, 57, 53, 0.3);
    border-top: 3px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.news-sidebar {
    position: sticky;
    top: 100px;
}

.discord-widget {
    background: linear-gradient(135deg, #151515 0%, #220b0b 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(229, 57, 53, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.discord-widget h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.discord-widget p {
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.discord-widget .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Rules Section */
.rules {
    padding: 100px 0;
    background: #0a0a0a;
    margin-top: -60px;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(255, 23, 68, 0.12), 0 20px 40px rgba(0,0,0,0.6);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #1e0c0c 100%);
    border-radius: 10px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: #e53935;
    transform: translateX(10px);
}

.rule-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #b71c1c, #7f0a0a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rule-text h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.rule-text p {
    color: #cccccc;
    line-height: 1.6;
    font-weight: 500;
}

.rules-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12) 0%, rgba(28, 10, 10, 0.12) 100%);
    border: 2px solid #e53935;
    border-radius: 10px;
    text-align: center;
}

.rules-note p {
    color: #ff8a80;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #121212 0%, #1e0c0c 100%);
    margin-top: -60px;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(255, 23, 68, 0.12), 0 20px 40px rgba(0,0,0,0.6);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #e53935;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: #e53935;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.contact-text p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-link:hover {
    color: #ff1744;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.server-info {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(229, 57, 53, 0.35);
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.server-info h3 {
    color: #e53935;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-family: 'Redemption', 'Cinzel', serif;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.server-details {
    margin-bottom: 2rem;
}

.server-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(229, 57, 53, 0.3);
    position: relative;
}

.server-detail:last-child {
    border-bottom: none;
}

.server-detail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(229, 57, 53, 0.5) 50%, transparent 100%);
}

.detail-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

.detail-value {
    color: #e53935;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 3rem 0 1rem;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Redemption', 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-section p {
    color: #ffffff;
    line-height: 1.6;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #ff1744;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #c62828, #b71c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
}

/* Trailer */
.trailer {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f0f0f 0%, #151515 100%);
  position: relative;
  clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(255, 23, 68, 0.12), 0 20px 40px rgba(0,0,0,0.6);
}

.trailer-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.video-wrapper {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
}

.yt-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback a {
  color: #ff1744;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .trailer { clip-path: none; border-radius: 16px; padding: 72px 0; }
}
/* Stacked overlay scroll effect */
.about, .features, .gallery, .news, .rules, .contact {
    position: sticky;
    top: 72px; /* не перекрывать фиксированную шапку */
    min-height: 92vh;
    margin-top: 0 !important;
}

.about { z-index: 1; }
.features { z-index: 2; }
.gallery { z-index: 3; }
.news { z-index: 4; }
.rules { z-index: 5; }
.contact { z-index: 6; }

/* Ослабляем тени для экономии и аккуратности */
.about, .features, .gallery, .news, .rules, .contact {
    box-shadow: 0 18px 60px rgba(0,0,0,0.45), 0 12px 30px rgba(0,0,0,0.3);
}

/* Адаптация: на планшетах/мобилках выключаем sticky-перекрытие и снижаем паддинги */
@media (max-width: 1200px) {
  .about, .features, .gallery, .news, .rules, .contact {
    min-height: 88vh;
    top: 64px;
  }
  .section-header h2 { font-size: 2.2rem; }
  .hero-title { font-size: 3.2rem; }
}

@media (max-width: 1024px) {
  .about, .features, .gallery, .news, .rules, .contact {
    position: relative;
    top: auto;
    min-height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  }
  .about, .features, .gallery, .news, .rules, .contact { border-radius: 16px; }
  .about, .features, .news, .contact { clip-path: none; }
  .hero-title { font-size: 2.6rem; }
  .section-header h2 { font-size: 2rem; }
  .features-grid { gap: 1.25rem; }
}

@media (max-width: 600px) {
  .about, .features, .gallery, .news, .rules, .contact { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.2rem; }
}

/* 3D Arthur Morgan Image */
.arthur-model {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 200px;
    z-index: 1000;
    pointer-events: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.arthur-model:hover {
    transform: scale(1.1);
}

.arthur-container {
    width: 100%;
    height: 100%;
    position: relative;
    animation: arthurBounce 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.arthur-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    animation: arthurFloat 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.arthur-shadow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadowPulse 3s ease-in-out infinite;
}

/* Arthur Morgan Animations */
@keyframes arthurBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(-12px) scale(1.05);
    }
    75% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes arthurFloat {
    0%, 100% {
        transform: rotateY(0deg) translateZ(0);
    }
    25% {
        transform: rotateY(5deg) translateZ(5px);
    }
    50% {
        transform: rotateY(10deg) translateZ(10px);
    }
    75% {
        transform: rotateY(5deg) translateZ(5px);
    }
}

@keyframes shadowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Arthur's Dialog - Speech Bubble */
.arthur-dialog {
    position: fixed;
    bottom: 240px;
    left: 30px;
    z-index: 2000;
    display: none;
    animation: speechBubbleFadeIn 0.3s ease-out;
    pointer-events: auto;
}

.dialog-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #1e0c0c 100%);
    border: 2px solid rgba(229, 57, 53, 0.35);
    border-radius: 15px;
    padding: 0;
    max-width: 350px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 0, 0, 0.3);
    position: relative;
    animation: speechBubbleSlideIn 0.3s ease-out;
}

/* Speech bubble arrow */
.dialog-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #1a1a1a;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.dialog-content::before {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 17px solid #e53935;
    z-index: -1;
}

.dialog-header {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    padding: 12px 15px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8B0000;
}

.dialog-header h3 {
    color: #fff;
    margin: 0;
    font-family: 'Redemption', 'Cinzel', serif;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dialog-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dialog-close:hover {
    background: rgba(139, 0, 0, 0.3);
    transform: scale(1.1);
    color: #DEB887;
}

.dialog-body {
    padding: 15px;
    color: #ffffff;
}

.dialog-body p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.promo-code {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    border: 2px solid rgba(229, 57, 53, 0.35);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.promo-code code {
    background: #000;
    color: #ff1744;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #ff1744;
    flex: 1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #ff1744 0%, #e53935 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(139, 0, 0, 0.5);
}

.dialog-note {
    background: rgba(229, 57, 53, 0.2);
    border-left: 3px solid #e53935;
    padding: 8px 12px;
    margin: 12px 0 0 0;
    border-radius: 0 5px 5px 0;
    font-size: 0.85rem;
    color: #ff8a80;
}

/* Speech Bubble Animations */
@keyframes speechBubbleFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes speechBubbleSlideIn {
    from {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

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

    .hero-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-logo { height: 8rem; }

    .hero-subtitle { font-size: 1rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-sidebar {
        position: static;
        order: -1;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    /* Rules compact */
    .rules { padding: 72px 0; }
    .rule-item { padding: 1.25rem; gap: 1rem; }
    .rule-number { width: 40px; height: 40px; font-size: 1rem; }
    .rule-text h4 { font-size: 1.1rem; }
    .rule-text p { font-size: 0.95rem; }

    .rule-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    /* Responsive adjustments for Arthur Morgan Image */
    .arthur-model {
        width: 120px;
        height: 160px;
        bottom: 15px;
        left: 15px;
    }

    /* Speech bubble responsive adjustments */
    .arthur-dialog {
        bottom: 200px;
        left: 25px;
    }

    .dialog-content {
        max-width: 300px;
        width: 280px;
    }

    .promo-code {
        flex-direction: column;
        gap: 8px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title { font-size: 1.75rem; flex-direction: column; gap: 0.5rem; }
    .hero-logo { height: 5.8rem; }
    .hero { padding-top: calc(86px + env(safe-area-inset-top)); }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .rule-item {
        padding: 1.5rem;
    }

    /* Mobile adjustments for Arthur Morgan Image */
    .arthur-model {
        width: 90px;
        height: 120px;
        bottom: 10px;
        left: 10px;
    }

    /* Mobile speech bubble adjustments */
    .arthur-dialog {
        bottom: 160px;
        left: 15px;
    }

    .dialog-content {
        max-width: 250px;
        width: 240px;
    }

    .dialog-header h3 {
        font-size: 1rem;
    }

    .dialog-body {
        padding: 12px;
    }

    .dialog-body p {
        font-size: 0.85rem;
    }

    .promo-code code {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .copy-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Rules extra compact */
    .rule-item { padding: 1rem; gap: 0.75rem; }
    .rule-number { width: 36px; height: 36px; font-size: 0.95rem; }
    .rule-text h4 { font-size: 1rem; }
    .rule-text p { font-size: 0.9rem; }

    /* Mobile loading screen adjustments */
    .revolver {
        left: 10%;
    }

    .bullet-trail {
        left: 10%;
        width: 80%;
    }

    .loading-text {
        right: 10%;
    }

    .loading-title {
        font-size: 2rem;
    }

    .loading-progress {
        width: 250px;
    }
} 

/* Mobile-first fixes for top of the page */
@media (max-width: 768px) {
  .navbar { padding: 0.75rem 0; }
  .header { background: rgba(10,10,10,0.96); }
  .hero { min-height: 100svh; height: auto; padding-top: calc(82px + env(safe-area-inset-top)); }
  .hero-background { filter: blur(3px) brightness(0.65) contrast(1.15); }
  .hero-stats { gap: 1.25rem; }
  .hero-content { padding-top: 6px; }
}

/* Desktop 1920x1080 scale down */
@media (max-width: 1920px) and (min-width: 1366px) {
  .hero-title { font-size: 3.2rem; }
  .hero-logo { height: 10.5rem; }
  .hero-buttons .btn { padding: 0.9rem 2rem; font-size: 0.98rem; }
  .hero-stats { gap: 2rem; }
  .stat-item i { font-size: 1.6rem; }
  .stat-number { font-size: 1.3rem; }

  .section-header h2 { font-size: 2.1rem; }
  .section-header p { font-size: 1rem; }

  .about, .features, .gallery, .news, .rules, .contact, .trailer { padding: 80px 0; }
  .features-grid { gap: 1.5rem; }
  .feature-card { padding: 2rem; }
  .feature-icon { width: 64px; height: 64px; font-size: 1.6rem; }

  .video-wrapper { max-width: 1000px; }
}

/* Rules section rework: non-sticky and grid for desktop */
.rules {
  position: relative !important;
  top: auto !important;
  min-height: auto !important;
  clip-path: none;
  border-radius: 16px;
  padding: 90px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

@media (min-width: 1024px) {
  .rules-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 1.25rem;
  }
  .rule-item { margin: 0; }
}