* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 30, 60, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00a2ff, #a2ff00);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00b3ff, #b3ff00);
}

body, html {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #00a2ff rgba(0, 30, 60, 0.8);
}

* {
    cursor: none !important;
}

@media (max-width: 900px), (pointer: coarse) {
    html,
    html body,
    html body * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #00d0ff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00d0ff;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 162, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

html.custom-cursor-off .cursor-dot,
html.custom-cursor-off .cursor-outline {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.custom-cursor-off,
html.custom-cursor-off * {
    cursor: auto !important;
}

#video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

.overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 15, 36, 0.75) 0%, rgba(0, 26, 47, 0.82) 50%, rgba(0, 40, 70, 0.78) 100%);
    z-index: -99;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

header {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav-container {
    display: flex;
    align-items: center;
    flex: 1;
}

nav {
    margin-right: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 35px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #b0e6ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #00a2ff, #a2ff00);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #a2ff00;
}

nav ul li a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-btn {
    background: transparent;
    border: none;
    color: #00d0ff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.language-switcher a.language-btn:hover {
    color: #a2ff00;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.2), transparent);
    transition: 0.5s;
}

.language-btn:hover {
    color: #a2ff00;
    text-shadow: 0 0 8px rgba(162, 255, 0, 0.6);
}

.language-btn:hover::before {
    left: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #00d0ff;
    border-radius: 3px;
    transition: all 0.3s;
}

.center-logo {
    text-align: center;
    margin: 50px 0 40px;
}

.logo-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-image {
    height: 190px;
    margin-bottom: 25px;
    animation: float 5s ease-in-out infinite, logoGlowPulse 3.5s ease-in-out infinite;
}

.logo-text {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.logo-text:hover {
    animation: textGlitch 0.3s linear infinite;
    color: #a2ff00;
}

@keyframes textGlitch {
    0% { text-shadow: 2px 0 #00a2ff, -2px 0 #a2ff00; }
    25% { text-shadow: -2px 0 #00a2ff, 2px 0 #a2ff00; transform: translate(1px, 1px); }
    50% { text-shadow: 2px 0 #00a2ff, -2px 0 #a2ff00; transform: translate(-1px, -1px); }
    75% { text-shadow: -2px 0 #00a2ff, 2px 0 #a2ff00; transform: translate(0px, 1px); }
    100% { text-shadow: 2px 0 #00a2ff, -2px 0 #a2ff00; transform: translate(0); }
}

.logo-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00a2ff, #a2ff00);
    border-radius: 2px;
}

.logo-subtitle {
    font-size: 18px;
    color: #b0e6ff;
    margin-top: 20px;
    letter-spacing: 2px;
    font-weight: 400;
}

.hero {
    text-align: center;
    padding: 30px 0 60px;
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 1px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #b0e6ff;
    font-weight: 400;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00a2ff, #00d0ff, #00a2ff);
    background-size: 200% 200%;
    color: #002640;
    padding: 22px 65px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    margin: 20px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: glowPulse 3s infinite;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 162, 255, 0.6);
    background-position: 100% 50%;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
}

.feature {
    background: rgba(0, 30, 60, 0.6);
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    border: 1px solid rgba(0, 162, 255, 0.2);
    text-align: center;
    position: relative;
    backdrop-filter: blur(5px);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.5s ease;
    transform-style: preserve-3d;
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: linear-gradient(90deg, #00a2ff, #a2ff00, #00a2ff);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    transform: translateZ(20px);
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.feature:hover {
    border-color: #00d0ff;
    box-shadow: 0 20px 40px rgba(0, 162, 255, 0.2), 0 0 15px rgba(0, 162, 255, 0.4);
}

.feature-icon {
    font-size: 36px;
    color: #a2ff00;
    margin-bottom: 20px;
    transform: translateZ(30px);
}

.feature h3 {
    color: #00d0ff;
    margin-bottom: 15px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateZ(20px);
}

.feature p {
    color: #b0e6ff;
    line-height: 1.6;
    font-size: 15px;
    transform: translateZ(10px);
}

.social-section {
    text-align: center;
    margin: 40px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 162, 255, 0.2);
    border-bottom: 1px solid rgba(0, 162, 255, 0.2);
}

.social-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00d0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 162, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d0ff;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
    border: 1px solid #00a2ff;
}

.social-icon:hover {
    background: #00a2ff;
    color: #002640;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 162, 255, 0.5);
    border-color: #00d0ff;
}

.page {
    display: none;
    padding: 40px 0;
    min-height: 50vh;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 32px;
    color: #00d0ff;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content {
    background: rgba(0, 30, 60, 0.6);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 162, 255, 0.2);
    line-height: 1.6;
    text-align: center;
    font-size: 18px;
}

.media-error {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    padding: 8px 12px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #ffb4b4;
    background: rgba(0, 0, 0, 0.75);
    text-align: center;
}

.gallery-container {
    padding: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-item {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(0, 162, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    border-color: #00d0ff;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.6);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 36, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid #00a2ff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 162, 255, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #00d0ff;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 208, 255, 0.8);
}

.development-text {
    font-size: 22px;
    color: #a2ff00;
    text-align: center;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 14px;
    color: #80c4ff;
    border-top: 1px solid rgba(0, 162, 255, 0.2);
}

.os-warning {
    display: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 14px 48px 14px 18px;
    color: #e8f4ff;
    text-align: left;
    background: linear-gradient(135deg, rgba(8, 28, 52, 0.94) 0%, rgba(0, 55, 90, 0.9) 45%, rgba(0, 100, 140, 0.35) 100%);
    border: 1px solid rgba(0, 208, 255, 0.35);
    border-radius: 14px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 28px rgba(0, 162, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    animation: osWarningEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.os-warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d0ff, #a2ff00);
    border-radius: 14px 0 0 14px;
}

.os-warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(0, 208, 255, 0.2), rgba(0, 80, 120, 0.5));
    border: 1px solid rgba(0, 208, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.os-warning-body {
    flex: 1;
    min-width: 0;
}

.os-warning-title {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 4px;
    font-weight: 600;
}

.os-warning p {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.45;
}

.close-warning {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #b0e6ff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.close-warning:hover {
    background: rgba(0, 208, 255, 0.15);
    color: #fff;
    border-color: rgba(0, 208, 255, 0.4);
}

@keyframes osWarningEnter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes logoGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 16px rgba(162, 255, 0, 0.55))
            drop-shadow(0 0 32px rgba(0, 208, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 24px rgba(0, 208, 255, 0.65))
            drop-shadow(0 0 42px rgba(162, 255, 0, 0.35));
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(0, 162, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 208, 255, 0.8), 0 0 10px rgba(162, 255, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(0, 162, 255, 0.4); }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

.page-content h3 {
    color: #00d0ff;
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.page-content h4 {
    color: #a2ff00;
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

.language-content {
    display: none;
}

.language-content.lang-ru {
    display: block;
}

.nav-container nav ul li a.nav-link[href="rules.html"],
.nav-container nav ul li a.nav-link-rules {
    color: #b0e6ff;
}

.nav-current {
    color: #a2ff00;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    cursor: default;
}

.rules-page-wrap {
    padding: 20px 0 40px;
}

.rules-main-title {
    margin-bottom: 24px;
}

.page-content.rules-doc-wrap {
    text-align: left;
    max-width: 100%;
}

.rules-doc {
    text-align: left;
}

.rules-doc h3 {
    color: #00d0ff;
    font-size: 1.35rem;
    margin: 1.75rem 0 0.75rem;
    text-align: left;
}

.rules-doc h4 {
    color: #a2ff00;
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
    text-align: left;
    font-weight: 600;
}

.rules-doc h5 {
    color: #7dd3fc;
    font-size: 1.05rem;
    margin: 1.25rem 0 0.4rem;
    text-align: left;
}

.rules-doc h6 {
    color: #e0f2fe;
    font-size: 0.98rem;
    margin: 1rem 0 0.35rem;
    text-align: left;
    font-weight: 600;
}

.rules-doc p {
    margin-bottom: 0.65rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
}

.rules-doc ul {
    margin: 0.5rem 0 1rem 1.25rem;
    text-align: left;
}

.rules-doc li {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
}

.rules-doc em {
    color: rgba(180, 220, 255, 0.95);
}

.rules-lang-note {
    line-height: 1.65;
    text-align: left;
    margin: 0;
}