*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #060806;
    --green-1: #0d1a0d;
    --green-2: #143014;
    --green-3: #1a4a1a;
    --green-4: #2d6b2d;
    --green-5: #3d8b3d;
    --green-6: #4CAF50;
    --green-7: #66BB6A;
    --green-8: #81C784;
    --green-9: #A5D6A7;
    --green-10: #C8E6C9;
    --white: #ffffff;
    --text: #e8e8e8;
    --text-dim: #a0a0a0;
    --card: rgba(10, 20, 10, 0.6);
    --border: rgba(76, 175, 80, 0.2);
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-base { position: fixed; inset: 0; background: radial-gradient(ellipse at center, #0a1a0a 0%, #050805 70%); z-index: 0; }
.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 1; pointer-events: none; animation: glowFloat 15s ease-in-out infinite; }
.bg-glow-1 { width: 800px; height: 800px; background: rgba(46, 125, 50, 0.12); top: -200px; left: -100px; animation-delay: 0s; }
.bg-glow-2 { width: 600px; height: 600px; background: rgba(76, 175, 80, 0.10); top: 40%; right: -150px; animation-delay: -5s; }
.bg-glow-3 { width: 700px; height: 700px; background: rgba(56, 142, 60, 0.08); bottom: -200px; left: 30%; animation-delay: -10s; }

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
}

#particleCanvas { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

.scanline { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px); }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(6,8,6,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(76,175,80,0.15); transition: all 0.3s; }
.header-glow { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(76,175,80,0.5), rgba(129,199,132,0.8), rgba(76,175,80,0.5), transparent); animation: headerGlow 4s ease-in-out infinite; }

@keyframes headerGlow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.header-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s; }
.logo:hover { text-shadow: 0 0 20px rgba(76,175,80,0.5); }
.logo-icon { color: var(--green-7); display: flex; align-items: center; animation: logoSpin 10s linear infinite; }
@keyframes logoSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.logo-accent { color: var(--green-7); text-shadow: 0 0 15px rgba(102,187,106,0.4); }

.nav { display: flex; gap: 0.3rem; }
.nav-link { color: #888; text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; padding: 0.6rem 1rem; border-radius: 8px; transition: all 0.3s; }
.nav-link:hover { color: #ccc; background: rgba(76,175,80,0.08); }
.nav-link.active { color: var(--green-7); background: rgba(76,175,80,0.12); box-shadow: 0 0 20px rgba(76,175,80,0.1); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 4px; }
.burger span { width: 24px; height: 2px; background: var(--green-7); border-radius: 2px; transition: all 0.3s; }

.main { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem 2rem; }
.page { display: none; animation: pageIn 0.5s cubic-bezier(0.16,1,0.3,1); }
.page.active { display: block; }

@keyframes pageIn { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

#page-home.active { display: block; }

.hero { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; min-height: 80vh; }
.hero-text { flex: 1 1 420px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(76,175,80,0.1); color: var(--green-8); padding: 0.5rem 1.2rem; border-radius: 25px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 1.5rem; border: 1px solid rgba(76,175,80,0.2); animation: badgeGlow 3s ease-in-out infinite; }
@keyframes badgeGlow { 0%,100% { box-shadow: 0 0 10px rgba(76,175,80,0.1); } 50% { box-shadow: 0 0 20px rgba(76,175,80,0.2); } }
.badge-dot { width: 8px; height: 8px; background: var(--green-6); border-radius: 50%; animation: dotBlink 1.5s ease-in-out infinite; }
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem; color: #fff; letter-spacing: 1px; }
.hero-name { background: linear-gradient(135deg, var(--green-8), var(--green-10), var(--green-7)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 30px rgba(129,199,132,0.5)); animation: nameShine 4s ease-in-out infinite; }
@keyframes nameShine { 0%,100% { filter: drop-shadow(0 0 30px rgba(129,199,132,0.5)); } 50% { filter: drop-shadow(0 0 50px rgba(165,214,167,0.8)); } }

.hero-desc { color: #bbb; font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.8; }
.hero-ip-block { background: rgba(8,16,8,0.7); border: 1px solid rgba(76,175,80,0.25); border-radius: 14px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.ip-header { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: #777; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.ip-dot { width: 6px; height: 6px; background: var(--green-6); border-radius: 50%; }
.ip-address { font-size: 2rem; font-weight: 700; color: var(--green-7); letter-spacing: 2px; text-shadow: 0 0 20px rgba(102,187,106,0.4); margin-bottom: 0.8rem; }
.btn-copy-ip { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(76,175,80,0.15); color: var(--green-8); border: 1px solid rgba(76,175,80,0.3); padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; }
.btn-copy-ip:hover { background: rgba(76,175,80,0.25); border-color: rgba(76,175,80,0.5); }
.btn-copy-ip.copied { background: rgba(76,175,80,0.3); border-color: var(--green-6); }

.btn-play { display: inline-flex; position: relative; overflow: hidden; border: none; padding: 0; cursor: pointer; border-radius: 14px; margin-bottom: 1.5rem; transition: transform 0.3s; }
.btn-play:hover { transform: translateY(-3px); }
.btn-play-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--green-4), var(--green-5), var(--green-6)); border-radius: 14px; animation: btnShine 3s ease-in-out infinite; }
@keyframes btnShine { 0%,100% { opacity: 1; } 50% { opacity: 0.85; } }
.btn-play::before { content: ''; position: absolute; inset: -2px; border-radius: 16px; background: linear-gradient(135deg, var(--green-7), var(--green-9), var(--green-6)); z-index: -1; animation: btnBorderGlow 2s ease-in-out infinite; filter: blur(8px); opacity: 0.7; }
@keyframes btnBorderGlow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.btn-play-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 2.5rem; color: #fff; font-size: 1.2rem; font-weight: 900; letter-spacing: 2px; }

.hero-stats { display: flex; gap: 2rem; color: #aaa; font-size: 0.9rem; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 0.5rem; }
.stat-dot.online { width: 8px; height: 8px; background: var(--green-6); border-radius: 50%; animation: dotBlink 1.5s ease-in-out infinite; }

.hero-visual { flex: 1 1 500px; }
.hero-image-wrapper { border-radius: 20px; overflow: hidden; border: 2px solid rgba(76,175,80,0.3); transition: all 0.3s; animation: visualFloat 6s ease-in-out infinite; position: relative; max-width: 600px; }
.hero-image-wrapper:hover { border-color: var(--green-6); box-shadow: 0 0 40px rgba(76,175,80,0.3); }
@keyframes visualFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-img { width: 100%; height: auto; display: block; border-radius: 18px; min-height: 350px; object-fit: cover; }

.feature { display: flex; align-items: center; gap: 3rem; margin-bottom: 5rem; flex-wrap: wrap; }
.feature-right { flex-direction: row; }
.feature-left { flex-direction: row-reverse; }
.feature-text { flex: 1 1 400px; }
.feature-title { font-size: 1.8rem; font-weight: 900; color: var(--green-7); text-shadow: 0 0 20px rgba(102,187,106,0.4); margin-bottom: 1rem; letter-spacing: 1px; }
.feature-desc { color: #bbb; font-size: 1.05rem; line-height: 1.8; }
.feature-image { flex: 1 1 450px; max-width: 550px; }
.feature-img { width: 100%; height: auto; min-height: 300px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(76,175,80,0.25); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); cursor: pointer; display: block; }
.feature-img:hover { transform: scale(1.03); border-color: var(--green-6); box-shadow: 0 0 30px rgba(76,175,80,0.3); }

.page-title { font-size: 2.5rem; font-weight: 900; letter-spacing: 3px; background: linear-gradient(135deg, var(--green-8), var(--green-7)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-align: center; margin-bottom: 0.5rem; }
.page-subtitle { color: #999; font-size: 1.05rem; text-align: center; margin-bottom: 2.5rem; }

.page-tutorial.active { display: block; }
.tutorial-steps { display: flex; flex-direction: column; gap: 2rem; max-width: 900px; margin: 0 auto; }
.tutorial-step { display: flex; align-items: center; gap: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; backdrop-filter: blur(10px); transition: all 0.3s; flex-wrap: wrap; }
.tutorial-step.reverse { flex-direction: row-reverse; }
.tutorial-step:hover { border-color: rgba(76,175,80,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.tutorial-num { font-size: 4rem; font-weight: 900; color: rgba(76,175,80,0.1); flex-shrink: 0; width: 80px; text-align: center; }
.tutorial-content { flex: 1 1 250px; }
.tutorial-content h3 { color: var(--green-7); font-size: 1.3rem; margin-bottom: 0.5rem; }
.tutorial-content p { color: #bbb; line-height: 1.6; }
.tutorial-content code { background: rgba(0,0,0,0.4); padding: 0.2rem 0.6rem; border-radius: 4px; color: var(--green-7); font-weight: 600; }
.tutorial-image { flex: 0 0 350px; }
.tutorial-img { width: 100%; height: auto; min-height: 200px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(76,175,80,0.2); transition: all 0.3s; cursor: pointer; display: block; }
.tutorial-img:hover { transform: scale(1.05); border-color: var(--green-6); box-shadow: 0 0 20px rgba(76,175,80,0.3); }
.tutorial-image-placeholder { background: rgba(10,20,10,0.5); border: 2px dashed rgba(76,175,80,0.2); border-radius: 12px; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #555; font-size: 2.5rem; }
.tutorial-image-placeholder p { font-size: 1rem; margin-top: 0.5rem; }
.tutorial-footer { text-align: center; margin-top: 2rem; padding: 1.5rem; background: rgba(76,175,80,0.05); border-radius: 12px; border: 1px solid rgba(76,175,80,0.1); color: #aaa; max-width: 900px; margin-left: auto; margin-right: auto; }

.page-rules.active { display: block; }
.rules-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; padding: 0.8rem; background: rgba(10,18,10,0.5); border-radius: 12px; border: 1px solid var(--border); position: sticky; top: 80px; z-index: 20; backdrop-filter: blur(10px); }
.rules-nav a { color: #999; text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s; }
.rules-nav a:hover { color: var(--green-7); background: rgba(76,175,80,0.1); }
.rules-sections { display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.rules-block { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; scroll-margin-top: 140px; transition: all 0.3s; backdrop-filter: blur(10px); }
.rules-block:hover { border-color: rgba(76,175,80,0.4); }
.rules-block h3 { color: var(--green-7); font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.rules-block h3 span { background: linear-gradient(135deg, var(--green-5), var(--green-6)); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; }
.rule { background: rgba(0,0,0,0.2); border: 1px solid rgba(76,175,80,0.08); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.5rem; color: #ccc; font-size: 0.95rem; line-height: 1.6; }
.rule span { color: var(--green-6); font-weight: 700; margin-right: 0.5rem; }
.rule ul { margin-top: 0.4rem; padding-left: 1.5rem; list-style: none; }
.rule ul li { color: #aaa; font-size: 0.9rem; padding: 0.2rem 0; }
.rule ul li::before { content: '•'; color: var(--green-6); margin-right: 0.5rem; }

#page-community.active { display: flex; flex-direction: column; align-items: center; }
.community-grid { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.community-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; text-align: center; width: 320px; position: relative; overflow: hidden; backdrop-filter: blur(10px); transition: all 0.4s; }
.community-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(76,175,80,0.05) 0%, transparent 70%); pointer-events: none; }
.card-icon { font-size: 3rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.community-card h3 { color: var(--green-7); font-size: 1.4rem; margin-bottom: 0.8rem; position: relative; z-index: 1; }
.community-card p { color: #bbb; margin-bottom: 1.5rem; position: relative; z-index: 1; font-size: 0.95rem; line-height: 1.6; }
.btn-telegram { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--green-5), var(--green-6)); color: #fff; text-decoration: none; padding: 0.8rem 1.8rem; border-radius: 10px; font-weight: 700; letter-spacing: 1px; transition: all 0.3s; position: relative; z-index: 1; box-shadow: 0 0 25px rgba(76,175,80,0.3); }
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(102,187,106,0.5); }
.btn-discord-active { display: inline-flex; align-items: center; gap: 0.5rem; background: #5865F2; color: #fff; text-decoration: none; padding: 0.8rem 1.8rem; border-radius: 10px; font-weight: 700; letter-spacing: 1px; transition: all 0.3s; position: relative; z-index: 1; box-shadow: 0 0 25px rgba(88,101,242,0.3); }
.btn-discord-active:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(88,101,242,0.5); }
.card-link { margin-top: 1rem; color: #555; font-size: 0.85rem; position: relative; z-index: 1; }

#page-donate.active { display: flex; flex-direction: column; align-items: center; }
.donate-placeholder { text-align: center; padding: 3rem; background: var(--card); border: 1px solid var(--border); border-radius: 20px; max-width: 500px; width: 100%; backdrop-filter: blur(10px); }
.donate-icon { font-size: 4rem; margin-bottom: 1rem; animation: iconBounce 2s ease-in-out infinite; }
@keyframes iconBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.donate-placeholder h3 { color: var(--green-7); margin-bottom: 0.5rem; }
.donate-placeholder p { color: #999; margin-bottom: 1.5rem; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; width: 30%; background: linear-gradient(90deg, var(--green-5), var(--green-7)); border-radius: 3px; animation: progressAnim 3s ease-in-out infinite; }
@keyframes progressAnim { 0%,100% { width: 20%; } 50% { width: 40%; } }
.donate-progress span { color: #666; font-size: 0.85rem; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal { background: #0d100d; border: 2px solid rgba(76,175,80,0.4); border-radius: 20px; padding: 2.5rem; max-width: 480px; width: 90%; text-align: center; position: relative; overflow: hidden; animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1); }
@keyframes modalIn { from { transform: scale(0.9) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(76,175,80,0.15) 0%, transparent 70%); pointer-events: none; }
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-title { color: var(--green-7); font-size: 1.5rem; margin-bottom: 0.5rem; text-shadow: 0 0 20px rgba(102,187,106,0.4); }
.modal-desc { color: #aaa; margin-bottom: 1.5rem; }
.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #999; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 1; }
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.modal-ip-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.modal-ip-row input { flex: 1; background: #050805; border: 1px solid rgba(76,175,80,0.3); color: var(--green-7); padding: 0.8rem 1rem; font-size: 1.1rem; text-align: center; border-radius: 10px; font-weight: 600; letter-spacing: 1px; }
.btn-copy-modal { background: var(--green-6); color: #fff; border: none; padding: 0.8rem 1.2rem; font-weight: 700; border-radius: 10px; cursor: pointer; letter-spacing: 0.5px; transition: all 0.3s; white-space: nowrap; display: flex; align-items: center; gap: 0.4rem; }
.btn-copy-modal:hover { background: var(--green-7); box-shadow: 0 0 20px rgba(102,187,106,0.4); }
.modal-info { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }
.modal-tip { background: rgba(76,175,80,0.08); border: 1px solid rgba(76,175,80,0.15); border-radius: 10px; padding: 0.8rem 1rem; color: #aaa; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-tip code { background: rgba(0,0,0,0.4); padding: 0.2rem 0.5rem; border-radius: 4px; color: var(--green-7); }

.footer { position: relative; z-index: 10; border-top: 1px solid rgba(76,175,80,0.15); padding: 2rem 1.5rem; background: rgba(6,8,6,0.8); backdrop-filter: blur(10px); margin-top: 3rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { color: var(--green-7); font-weight: 700; font-size: 1.1rem; }
.footer-brand p { color: #555; font-size: 0.85rem; margin-top: 0.3rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: #777; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--green-7); }

@media (max-width: 768px) {
    .nav { display: none; }
    .burger { display: flex; }
    .nav.show { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,8,6,0.98); padding: 1rem; gap: 0.3rem; border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
    .hero { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2rem; }
    .hero-stats { justify-content: center; }
    .hero-visual { width: 100%; }
    .feature { flex-direction: column !important; }
    .feature-text { text-align: center; }
    .tutorial-step { flex-direction: column !important; text-align: center; }
    .tutorial-num { width: auto; font-size: 3rem; }
    .tutorial-image { flex: 0 0 auto; width: 100%; }
    .community-grid { flex-direction: column; align-items: center; }
    .rules-nav { gap: 0.3rem; }
    .rules-nav a { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
    .rules-block { padding: 1.2rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050805; }
::-webkit-scrollbar-thumb { background: var(--green-5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-6); }