@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.35);
    --primary-dark: #00b359;
    
    --danger: #ff3344;
    --danger-glow: rgba(255, 51, 68, 0.4);

    --bg-dark: #080a0c;
    --bg-card: #0f1318;
    --bg-panel: #141920;
    
    --text-main: #e1e7ed;
    --text-muted: #8b9bb0;
    --border-color: rgba(0, 255, 136, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

main p a, main li a, .info a, .rules a, .faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

main p a:hover, main li a:hover, .info a:hover, .rules a:hover, .faq-answer a:hover {
    color: #34d399;
    text-decoration: underline;
}

main p a:visited, main li a:visited, .info a:visited, .rules a:visited, .faq-answer a:visited {
    color: var(--primary);
}

a.noline {
    text-decoration: none !important;
}

header, .site-header {
    width: 100%;
    background: rgba(8, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-tag {
    font-size: 10px;
    background: var(--primary);
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

nav ul, .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li a, .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

nav ul li a:hover, .nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.dropdown {
    position: relative;
    margin: 0 5px;
}

.dropdown-title {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    transition: 0.2s;
}

.dropdown:hover .dropdown-title {
    color: var(--primary);
}

.arrow-down {
    font-size: 9px;
    transition: transform 0.2s;
}

.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 160px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 10000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary);
}

.btn-login {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.user-avatar, .user-avatar-canvas {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    object-fit: cover;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.btn-logout {
    color: var(--danger);
    text-decoration: none;
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.7;
    transition: 0.2s;
}

.btn-logout:hover { opacity: 1; }

.hero {
    position: relative;
    background: url('../images/hero-bj.webp') no-repeat center/cover;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.download-hero {
    padding: 100px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg-overlay, .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(8,10,12,0.6) 0%, rgba(8,10,12,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 20px;
}

.version-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-description, .hero-desc, .sub-text {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.sub-text {
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.8;
}

.btn-primary, .btn, .download-btn, .btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #080a0c;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none !important;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn:hover, .download-btn:hover, .btn2:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.download-action {
    margin: 10px 0;
}

.main-download-btn, .jndn-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--primary-glow);
}

.main-download-btn:hover, .jndn-btn:hover {
    background: var(--primary);
    color: #080a0c;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
    text-decoration: none !important;
}

.btn-icon {
    font-size: 1.8rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
}

.quick-start {
    max-width: 900px;
    margin: -20px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.9;
    margin-bottom: 5px;
}

.step-card h4 {
    font-family: var(--font-heading);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.step-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-card code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    font-family: monospace;
}

.alarm-banner {
    background: linear-gradient(180deg, #180507 0%, #0d0304 100%);
    border-top: 1px solid var(--danger);
    border-bottom: 1px solid var(--danger);
    padding: 35px 20px;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(255, 51, 68, 0.15);
}

.alarm-container {
    max-width: 800px;
    margin: 0 auto;
}

.alarm-header, .alarm-status {
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    animation: alarm-blink 1s infinite;
}

@keyframes alarm-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--danger); }
    50% { opacity: 0.2; }
}

.alarm-banner h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: #fff;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.alarm-banner p {
    color: #d1a7a7;
    font-size: 15px;
    margin-bottom: 20px;
}

.alarm-banner a, .alarm-banner .alarm-link {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--danger) !important;
    color: var(--danger) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.alarm-banner a:hover, .alarm-banner .alarm-link:hover {
    background: var(--danger) !important;
    color: #fff !important;
    box-shadow: 0 0 20px var(--danger-glow);
    text-decoration: none !important;
}

.info-section, .info, .contacts, .gallery {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-header h2, .info h2, .contacts h2, .gallery h2, .requirements h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 10px auto 25px auto;
    box-shadow: 0 0 8px var(--primary-glow);
}

.info-text {
    font-size: 16px;
    color: var(--text-muted);
}

.features, .social-cards, .req-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}

.feature-card, .card, .req-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 30px 24px;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.feature-icon, .card i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card h3, .card h3, .req-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.feature-card p, .card p, .req-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.feature-card:hover, .card:hover, .req-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

.rules, .requirements {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
}

.rules h1 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 32px;
}

.rule-block {
    margin-bottom: 20px;
    padding: 18px;
    border-left: 3px solid var(--primary);
    background: var(--bg-panel);
    border-radius: 4px;
}

.rule-title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}

.rule-title.green { color: var(--primary); }

.rule-block ul {
    list-style: none;
    padding-left: 10px;
}

.rule-block ul li {
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text-main);
}

.penalty {
    color: var(--danger);
    font-weight: 700;
    text-shadow: 0 0 8px var(--danger-glow);
}

.rules-anchor {
    position: fixed;
    top: 100px;
    left: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    z-index: 100;
    max-width: 200px;
}

.rules-anchor h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.rules-anchor ul { list-style: none; }
.rules-anchor li { margin-bottom: 6px; }
.rules-anchor a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}
.rules-anchor a:hover { color: var(--primary); }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-panel);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.faq-answer p { padding: 15px 0; }

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

.gallery-item {
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%; max-height: 85%;
    margin-top: 50px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.close, .prev, .next {
    position: absolute;
    color: var(--primary);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close { top: 20px; right: 30px; }
.prev { top: 50%; left: 30px; }
.next { top: 50%; right: 30px; }

.contacts {
    max-width: 1500px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.contact-cards.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.contact-cards.grid-devs {
    grid-template-columns: repeat(5, 1fr);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.contact-card i { 
    font-size: 3.8rem; 
    color: var(--primary); 
    margin-bottom: 12px; 
}

.contact-card img { 
    max-width: 75px; 
    max-height: 75px; 
    object-fit: contain; 
    margin-bottom: 12px; 
}

.dev-avatar { 
    width: 85px !important; 
    height: 85px !important; 
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 10px; 
    border: 2px solid var(--primary-glow);
}

.contact-card p { 
    font-size: 1.05rem; 
    font-weight: 700; 
    margin: 0; 
    text-align: center; 
    color: #e5e7eb;
}

footer, .site-footer {
    background: #050709;
    border-top: 1px solid var(--border-subtle);
    padding: 25px 20px;
    margin-top: auto;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a, footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover, footer a:hover {
    color: var(--primary);
}

.bullet {
    margin: 0 8px;
    color: var(--border-subtle);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1f2933; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

@media (max-width: 1200px) {
    .contact-cards, 
    .contact-cards.grid-6, 
    .contact-cards.grid-devs {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; }
    .hero h1 { font-size: 38px; }
    .footer-container { flex-direction: column; text-align: center; }
    .rules-anchor { display: none; }
    .quick-start { margin-top: 0; }
}