body {
    font-family: 'Orbitron', sans-serif;
    background-color: #000;
    background-image: url('https://fileexport.ru/img/3.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
.header {
    background-color: #096800;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 1rem;
}

.header nav {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.header nav a {
    color: white;
    text-align: center;
    transition: color 0.3s;
}

.header nav a:hover {
    color: #ffffff;
}

/* Main content */
.main-content {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-block {
    max-width: 56rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-button {
    background-color: #805700;
    border-radius: 1rem;
    padding: 0.75rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.back-button:hover {
    transform: translateY(-0.125rem);
}

.back-button i {
    font-size: 1.25rem;
    color: #ffffff;
}

.back-button span {
    color: #ffffff;
    font-size: 0.875rem;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo-window {
    background-color: #805700;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1/1;
}

.logo-window img {
    width: 12rem;
    height: 12rem;
    border-radius: 0.5rem;
}

.text-window {
    background-color: #805700;
    border-radius: 1rem;
    padding: 1rem;
    flex: 1;
    transition: transform 0.2s;
}

.text-window:hover {
    transform: translateY(-0.125rem);
}

.text-window h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.text-window p {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Server windows */
.server-windows {
    max-width: 56rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.server-window {
    background-color: #805700;
    border-radius: 1rem;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.server-window:hover {
    transform: translateY(-0.125rem);
}

.server-window i {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.server-window p {
    color: #d1d5db;
    font-size: 0.875rem;
    text-align: center;
}

/* Additional windows */
.additional-windows {
    max-width: 56rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.additional-window {
    background-color: #805700;
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s;
    cursor: pointer;
}

.additional-window:hover {
    transform: translateY(-0.125rem);
}

.additional-window.reverse {
    flex-direction: column-reverse;
}

.additional-window img {
    width: 360px;
    height: 202px;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.additional-window.reverse img {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.additional-window h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.additional-window p {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background-color: #5c5c5c;
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Media queries */
@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header h1 {
        font-size: 1.875rem;
        margin-bottom: 0;
    }
    
    .header nav {
        gap: 1.5rem;
    }
    
    .back-button {
        width: 33.333333%;
    }
    
    .back-button span {
        font-size: 1rem;
    }
    
    .logo-text-container {
        flex-direction: row;
        gap: 1rem;
    }
    
    .logo-window {
        width: 33.333333%;
    }
    
    .text-window h2 {
        font-size: 1.875rem;
    }
    
    .text-window p {
        font-size: 1rem;
    }
    
    .server-windows {
        flex-direction: row;
        gap: 1rem;
    }
    
    .server-window p {
        font-size: 1rem;
    }
    
    .additional-window {
        flex-direction: row;
    }
    
    .additional-window.reverse {
        flex-direction: row-reverse;
    }
    
    .additional-window img {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .additional-window.reverse img {
        margin-top: 0;
        margin-right: 0;
        margin-left: 1rem;
    }
    
    .additional-window h3 {
        font-size: 1.25rem;
    }
    
    .additional-window p {
        font-size: 1rem;
    }
}

/* Табы */
.tab-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-button {
    background-color: #805700;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #096800;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane ul {
    list-style-type: none;
    padding: 0;
}

.tab-pane li {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .tab-pane li {
        font-size: 1rem;
    }
}

/* Топ игроков (фиксированный) */
.top-players-fixed {
    position: fixed;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background-color: #805700;
    border-radius: 1rem;
    padding: 1rem;
    width: 250px;
    z-index: 1000;
    display: none;
}

.top-players-header {
    margin-bottom: 1rem;
}

.top-players-header h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: bold;
}

.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.player-avatar img {
    border-radius: 50%;
}

.player-info {
    flex: 1;
}

.player-name {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.player-stats {
    color: #d1d5db;
    font-size: 0.75rem;
}

@media (min-width: 1024px) {
    .top-players-fixed {
        display: block;
    }
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.stat {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Back button with fact */
.back-button-with-fact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inline-fact {
    background-color: #805700;
    border-radius: 1rem;
    padding: 0.75rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fact-label {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    white-space: nowrap;
}

.fact-text {
    color: #d1d5db;
    font-size: 0.875rem;
    flex: 1;
}

.mini-fact-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.mini-fact-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .back-button-with-fact {
        flex-direction: row;
    }
    
    .back-button {
        width: auto;
    }
    
    .fact-label,
    .fact-text {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}