      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --mc-green: #5B7C3A;
            --mc-dark-green: #3A511A;
            --mc-brown: #8B7355;
            --mc-dark-brown: #654321;
            --mc-light-brown: #A68A64;
            --mc-stone: #9C9C9C;
            --mc-dark-gray: #373737;
            --mc-blue: #3D7CB6;
            --mc-red: #B23D3D;
            --mc-gold: #FFD700;
        }

        body {
            background-color: #0f1a1f;
            color: #f0f0f0;
            line-height: 1.6;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(59, 81, 26, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 80% 70%, rgba(61, 124, 182, 0.1) 0%, transparent 20%);
            -webkit-text-size-adjust: 100%;
        }

        .pixel-border {
            border: 3px solid;
            border-color: var(--mc-brown) var(--mc-dark-brown) var(--mc-dark-brown) var(--mc-brown);
            border-radius: 0;
            box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Top auth bar */
        .auth-bar {
            background-color: rgba(15, 26, 31, 0.95);
            padding: 8px 0;
            border-bottom: 2px solid var(--mc-dark-green);
            font-size: 14px;
        }

        .auth-container {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 15px;
        }

        .auth-user {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #f0f0f0;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--mc-green), var(--mc-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--mc-brown);
            font-size: 16px;
            color: white;
        }

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

        .user-name {
            font-weight: bold;
            color: var(--mc-gold);
        }

        .user-status {
            font-size: 11px;
            color: #aaa;
        }

        .auth-button {
            background-color: var(--mc-green);
            color: white;
            border: none;
            padding: 6px 15px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            transition: all 0.3s;
            border: 2px solid var(--mc-brown);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .auth-button:hover {
            background-color: var(--mc-dark-green);
            transform: translateY(-2px);
        }

        .logout-btn {
            background-color: transparent;
            color: #aaa;
            border: 1px solid #555;
            padding: 4px 10px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .logout-btn:hover {
            background-color: var(--mc-red);
            color: white;
            border-color: var(--mc-red);
        }

        /* Header styles - оптимизировано для мобильных */
        header {
            background-color: rgba(15, 26, 31, 0.98);
            padding: 12px 0;
            border-bottom: 3px solid var(--mc-green);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
        }

        .header-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            justify-content: center;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--mc-green), var(--mc-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--mc-brown);
            flex-shrink: 0;
        }

        .logo-icon i {
            font-size: 24px;
            color: white;
        }

        .logo-text {
            text-align: center;
        }

        .logo-text h1 {
            font-size: 22px;
            color: var(--mc-gold);
            text-shadow: 1px 1px 0 #000;
            letter-spacing: 0.5px;
            line-height: 1.2;
        }

        .logo-text p {
            font-size: 12px;
            color: #aaa;
            margin-top: 2px;
        }

        .server-ip {
            background-color: var(--mc-dark-gray);
            padding: 8px 12px;
            border: 2px solid var(--mc-green);
            font-family: monospace;
            font-size: 16px;
            color: var(--mc-gold);
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            width: 100%;
            max-width: 280px;
        }

        nav {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 5px;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 8px;
            justify-content: center;
            flex-wrap: nowrap;
            min-width: min-content;
            padding: 0 5px;
        }

        nav a {
            color: white;
            text-decoration: none;
            padding: 8px 12px;
            background-color: var(--mc-dark-gray);
            border: 2px solid var(--mc-brown);
            transition: all 0.3s;
            font-weight: bold;
            font-size: 13px;
            white-space: nowrap;
            display: inline-block;
        }

        nav a:hover, nav a.active {
            background-color: var(--mc-green);
            transform: translateY(-2px);
        }

        /* Auth modal */
        .auth-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .auth-modal-content {
            background-color: rgba(25, 35, 40, 0.95);
            padding: 30px;
            width: 90%;
            max-width: 400px;
            border: 3px solid var(--mc-brown);
            position: relative;
        }

        .close-auth-modal {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            color: #aaa;
            font-size: 24px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close-auth-modal:hover {
            color: var(--mc-red);
        }

        .auth-modal h2 {
            color: var(--mc-gold);
            margin-bottom: 20px;
            text-align: center;
            font-size: 24px;
        }

        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .auth-form input {
            padding: 12px;
            background-color: rgba(15, 26, 31, 0.8);
            border: 2px solid var(--mc-brown);
            color: white;
            font-size: 16px;
        }

        .auth-form input:focus {
            outline: none;
            border-color: var(--mc-green);
        }

        .auth-submit-btn {
            background: linear-gradient(to right, var(--mc-green), var(--mc-blue));
            color: white;
            border: none;
            padding: 12px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }

        .auth-submit-btn:hover {
            transform: translateY(-2px);
        }

        .auth-switch {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
            color: #aaa;
        }

        .auth-switch-btn {
            background: none;
            border: none;
            color: var(--mc-blue);
            cursor: pointer;
            text-decoration: underline;
            font-size: 14px;
        }

        .auth-switch-btn:hover {
            color: var(--mc-gold);
        }

        /* Hero section - оптимизировано для мобильных */
        .hero {
            padding: 40px 0 30px;
            text-align: center;
            background: linear-gradient(to bottom, rgba(15, 26, 31, 0.9), rgba(15, 26, 31, 0.7));
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero h2 {
            font-size: 28px;
            color: white;
            margin-bottom: 15px;
            text-shadow: 2px 2px 0 #000;
            padding: 0 10px;
        }

        .hero h2 span {
            color: var(--mc-gold);
            display: inline-block;
        }

        .hero p {
            font-size: 16px;
            max-width: 800px;
            margin: 0 auto 20px;
            background-color: rgba(0, 0, 0, 0.7);
            padding: 15px;
            border-left: 4px solid var(--mc-green);
            text-align: left;
        }

        .hero-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 25px;
        }

        .stat {
            text-align: center;
            padding: 10px;
        }

        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: var(--mc-gold);
            text-shadow: 1px 1px 0 #000;
            line-height: 1;
        }

        .stat-label {
            font-size: 11px;
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 3px;
        }

        /* Features section - оптимизировано для мобильных */
        .section-title {
            color: var(--mc-gold);
            font-size: 26px;
            text-align: center;
            margin: 30px 0 20px;
            text-shadow: 1px 1px 0 #000;
            position: relative;
            padding: 0 10px;
        }

        .section-title:after {
            content: '';
            display: block;
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, transparent, var(--mc-green), transparent);
            margin: 8px auto;
        }

        .features {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 40px;
        }

        .feature-card {
            background-color: rgba(25, 35, 40, 0.9);
            padding: 20px;
            transition: transform 0.3s;
            border-top: 3px solid var(--mc-green);
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--mc-green), var(--mc-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            font-size: 22px;
            color: white;
        }

        .feature-card h3 {
            color: var(--mc-gold);
            margin-bottom: 10px;
            font-size: 18px;
        }

        .feature-tag {
            display: inline-block;
            background-color: var(--mc-blue);
            color: white;
            padding: 2px 8px;
            font-size: 11px;
            border-radius: 3px;
            margin-bottom: 8px;
        }

        .feature-card p {
            font-size: 14px;
            line-height: 1.5;
        }

        /* Rules section - оптимизировано для мобильных */
        .rules {
            background-color: rgba(25, 35, 40, 0.9);
            padding: 25px;
            margin-bottom: 40px;
            border-left: 4px solid var(--mc-red);
        }

        .rules h3 {
            color: var(--mc-red);
            margin-bottom: 15px;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .rules-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .rule-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 0;
        }

        .rule-icon {
            color: var(--mc-red);
            font-size: 16px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .rule-item div {
            font-size: 14px;
            line-height: 1.4;
        }

        /* Gallery - оптимизировано для мобильных */
        .gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 40px;
        }

        .gallery-item {
            height: 150px;
            background-color: var(--mc-dark-gray);
            overflow: hidden;
            position: relative;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        /* Join section - оптимизировано для мобильных */
        .join-section {
            text-align: center;
            padding: 40px 0;
            background: linear-gradient(to right, rgba(59, 81, 26, 0.3), rgba(61, 124, 182, 0.3));
            margin: 30px 0;
            position: relative;
            overflow: hidden;
        }

        .join-section p {
            font-size: 16px;
            padding: 0 10px;
            margin-bottom: 20px;
        }

        .ip-display {
            background-color: rgba(0, 0, 0, 0.7);
            padding: 12px;
            margin: 15px auto;
            display: inline-block;
            font-family: monospace;
            font-size: 18px;
            color: var(--mc-gold);
            border: 2px dashed var(--mc-green);
            max-width: 90%;
            overflow-x: auto;
            white-space: nowrap;
        }

        .join-button {
            display: inline-block;
            background: linear-gradient(to right, var(--mc-green), var(--mc-blue));
            color: white;
            font-size: 18px;
            font-weight: bold;
            padding: 12px 25px;
            text-decoration: none;
            margin-top: 15px;
            transition: all 0.3s;
            border: 2px solid var(--mc-brown);
        }

        .join-button:hover {
            transform: scale(1.05);
        }

        /* Footer - оптимизировано для мобильных */
        footer {
            background-color: rgba(15, 26, 31, 0.98);
            padding: 30px 0 15px;
            border-top: 3px solid var(--mc-green);
            margin-top: 40px;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            gap: 25px;
            margin-bottom: 20px;
        }

        .footer-column {
            width: 100%;
        }

        .footer-column h4 {
            color: var(--mc-gold);
            margin-bottom: 15px;
            font-size: 18px;
        }

        .footer-column p {
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 15px;
        }

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

        .footer-column ul li {
            margin-bottom: 8px;
        }

        .footer-column a {
            color: #aaa;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 14px;
        }

        .social-icons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: var(--mc-dark-gray);
            color: white;
            border-radius: 50%;
            font-size: 16px;
            transition: all 0.3s;
            border: 2px solid var(--mc-brown);
        }

        .copyright {
            text-align: center;
            padding-top: 15px;
            border-top: 1px solid #333;
            color: #777;
            font-size: 12px;
            line-height: 1.4;
        }

        /* Animation for IP copy */
        .copied-message {
            position: fixed;
            top: 70px;
            right: 10px;
            left: 10px;
            background-color: var(--mc-green);
            color: white;
            padding: 12px;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: none;
            animation: fadeInOut 2s ease;
            text-align: center;
            font-size: 14px;
        }

        @keyframes fadeInOut {
            0% { opacity: 0; transform: translateY(-10px); }
            15% { opacity: 1; transform: translateY(0); }
            85% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-10px); }
        }

        /* Улучшения для планшетов */
        @media (min-width: 768px) {
            .header-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 20px;
            }
            
            .logo {
                width: auto;
                justify-content: flex-start;
            }
            
            .logo-text {
                text-align: left;
            }
            
            .server-ip {
                width: auto;
                margin: 0;
            }
            
            nav {
                width: auto;
                order: 3;
                flex: 1;
                max-width: none;
            }
            
            nav ul {
                justify-content: flex-end;
            }
            
            .hero h2 {
                font-size: 36px;
            }
            
            .hero p {
                font-size: 18px;
                padding: 20px;
            }
            
            .hero-stats {
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;
            }
            
            .stat-number {
                font-size: 28px;
            }
            
            .section-title {
                font-size: 32px;
            }
            
            .features {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }
            
            .rules-list {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .gallery {
                grid-template-columns: repeat(4, 1fr);
                gap: 15px;
            }
            
            .footer-content {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .footer-column {
                flex: 1;
                min-width: 200px;
            }
            
            .copied-message {
                left: auto;
                right: 20px;
                max-width: 300px;
            }
        }

        /* Улучшения для десктопов */
        @media (min-width: 992px) {
            .container {
                padding: 0 20px;
            }
            
            .hero {
                padding: 60px 0 40px;
            }
            
            .hero h2 {
                font-size: 42px;
            }
            
            .features {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .feature-card:hover {
                transform: translateY(-10px);
            }
            
            .join-button:hover {
                box-shadow: 0 0 20px rgba(91, 124, 58, 0.7);
            }
        }

        /* Улучшения для очень маленьких экранов */
        @media (max-width: 360px) {
            .logo-text h1 {
                font-size: 18px;
            }
            
            nav a {
                padding: 6px 10px;
                font-size: 12px;
            }
            
            .hero h2 {
                font-size: 24px;
            }
            
            .hero-stats {
                grid-template-columns: 1fr;
            }
            
            .gallery {
                grid-template-columns: 1fr;
            }
        }
        
        /* Улучшение скролла на мобильных */
        html {
            scroll-behavior: smooth;
        }
        
        /* Предотвращение увеличения шрифта на iOS */
        input, textarea, select {
            font-size: 16px;
        }