body {
    background-color: #1a0f0a;
    background-image: radial-gradient(circle, #2d1b13 0%, #0f0805 100%);
    color: #2b1a0a;
    font-family: "Georgia", "Times New Roman", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
}

header {
    background: linear-gradient(to bottom, #422616 0%, #21120a 100%);
    border-bottom: 3px double #8c6939;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo {
    color: #f4e5c3;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px #000;
}

.online-counter {
    background: #5c1306;
    color: #fff2cc;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid #d4af37;
    font-size: 14px;
    font-weight: bold;
}

.game-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dwar-box {
    background: #f4e5c3;
    border: 4px double #8c6939;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(139, 115, 85, 0.2);
    padding: 20px;
    border-radius: 4px;
    position: relative;
    height: fit-content;
}

.dwar-box::before {
    content: "";
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px solid #d4af37;
    pointer-events: none;
}

.dwar-box h1, .dwar-box h2, .dwar-box h3 {
    color: #5c1306;
    text-align: center;
    margin-top: 0;
    border-bottom: 1px dashed #8c6939;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.dwar-box h1 {
    font-size: 22px;
}

.login-widget p {
    margin: 10px 0 4px 0;
}

label {
    font-weight: bold;
    font-size: 13px;
    color: #4a321a;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    background: #fffbf0;
    border: 1px solid #705431;
    padding: 8px;
    font-size: 14px;
    color: #2b1a0a;
    border-radius: 3px;
    margin-top: 4px;
}

input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.6);
}

button[type="submit"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #420b02;
    border-top-color: #e6533c;
    color: #fff2cc;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: "Georgia", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    background: linear-gradient(to bottom, #bd2c16 0%, #801c0c 50%, #5c1306 100%);
    margin-top: 12px;
}

.btn-reg {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #165c16;
    border-top-color: #5cee5c;
    border-bottom-color: #0d3a0d;
    color: #ffffff;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    font-family: "Georgia", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    text-decoration: none;
    background: linear-gradient(to bottom, #34a834 0%, #1e731e 50%, #114d11 100%);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.1s, filter 0.2s;
}

button:hover, .btn-reg:hover { 
    filter: brightness(1.15); 
}

.btn-reg:active {
    background: linear-gradient(to bottom, #114d11 0%, #1e731e 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    transform: translateY(1px);
}

.login-widget a {
    color: #801c0c;
    font-weight: bold;
    text-decoration: none;
}

.login-widget a:hover {
    color: #bd2c16;
}

.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-menu a {
    display: block;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #fffdf7 0%, #e3d2aa 100%);
    border: 1px solid #6e512c;
    border-top-color: #ebdcb9;
    border-bottom-color: #523b1f;
    color: #3b240f;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.15s ease-in-out;
}

.side-menu a:hover {
    background: linear-gradient(to bottom, #731a0b 0%, #541105 100%);
    color: #fff4d4;
    border-color: #380a02;
    border-top-color: #9c2714;
    padding-left: 18px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* login.css - стили для главной страницы */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a0f0a;
    background-image: radial-gradient(circle, #2d1b13 0%, #0f0805 100%);
    color: #2b1a0a;
    font-family: "Georgia", "Times New Roman", serif;
    min-height: 100vh;
}

header {
    background: linear-gradient(to bottom, #422616 0%, #21120a 100%);
    border-bottom: 3px double #8c6939;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo {
    color: #f4e5c3;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px #000;
}

.online-counter {
    background: #5c1306;
    color: #fff2cc;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid #d4af37;
    font-size: 14px;
    font-weight: bold;
}

.game-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dwar-box {
    background: #f4e5c3;
    border: 4px double #8c6939;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(139, 115, 85, 0.2);
    padding: 20px;
    border-radius: 4px;
    position: relative;
}

.dwar-box::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid #d4af37;
    pointer-events: none;
}

.dwar-box h1, .dwar-box h2, .dwar-box h3 {
    color: #5c1306;
    text-align: center;
    margin-top: 0;
    border-bottom: 1px dashed #8c6939;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.dwar-box h1 {
    font-size: 22px;
}

/* Авторизация */
.login-widget p {
    margin: 10px 0 4px 0;
}

label {
    font-weight: bold;
    font-size: 13px;
    color: #4a321a;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    background: #fffbf0;
    border: 1px solid #705431;
    padding: 8px;
    font-size: 14px;
    color: #2b1a0a;
    border-radius: 3px;
    margin-top: 4px;
}

input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.6);
}

button[type="submit"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #420b02;
    border-top-color: #e6533c;
    color: #fff2cc;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: "Georgia", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    background: linear-gradient(to bottom, #bd2c16 0%, #801c0c 50%, #5c1306 100%);
    margin-top: 12px;
}

button[type="submit"]:hover {
    filter: brightness(1.15);
}

.btn-reg {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #165c16;
    border-top-color: #5cee5c;
    border-bottom-color: #0d3a0d;
    color: #ffffff;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    font-family: "Georgia", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    text-decoration: none;
    background: linear-gradient(to bottom, #34a834 0%, #1e731e 50%, #114d11 100%);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reg:hover {
    filter: brightness(1.15);
}

.login-widget a {
    color: #801c0c;
    font-weight: bold;
    text-decoration: none;
}

.login-widget a:hover {
    color: #bd2c16;
}

/* Меню */
.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-menu a {
    display: block;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #fffdf7 0%, #e3d2aa 100%);
    border: 1px solid #6e512c;
    border-top-color: #ebdcb9;
    border-bottom-color: #523b1f;
    color: #3b240f;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.15s ease-in-out;
}

.side-menu a:hover {
    background: linear-gradient(to bottom, #731a0b 0%, #541105 100%);
    color: #fff4d4;
    border-color: #380a02;
    border-top-color: #9c2714;
    padding-left: 18px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Блок новостей */
.news-section {
    background: #f4e5c3;
    border: 4px double #8c6939;
    border-radius: 4px;
    position: relative;
}

.news-section::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid #d4af37;
    pointer-events: none;
}

.news-section h2 {
    color: #5c1306;
    text-align: center;
    margin: 0;
    padding: 15px;
    border-bottom: 1px dashed #8c6939;
}

.news-list {
    max-height: 550px;
    overflow-y: auto;
    padding: 5px;
}

/* Стили для новостей */
.news-item {
    border-bottom: 1px solid #d4af37;
    padding: 15px;
    transition: background 0.2s;
}

.news-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.news-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.news-type-regular {
    background: #2e5c2e;
    color: #e8f5e8;
}

.news-type-fast {
    background: #2e5c2e;
    color: #e8f5e8;
}

.news-type-best {
    background: #d4af37;
    color: #1a0f0a;
}

.news-type-client {
    background: #5c1306;
    color: #ffccaa;
}

.news-date {
    font-size: 11px;
    color: #8c6939;
}

.news-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

.news-title a {
    color: #5c1306;
    text-decoration: none;
}

.news-title a:hover {
    color: #bd2c16;
    text-decoration: underline;
}

.news-text {
    font-size: 13px;
    line-height: 1.5;
    color: #2b1a0a;
}

.news-text p {
    margin-bottom: 8px;
}

.news-text img {
    max-width: 100%;
    height: auto;
}

.all-news-link {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #d4af37;
}

.all-news-link a {
    color: #801c0c;
    text-decoration: none;
    font-weight: bold;
}

.all-news-link a:hover {
    color: #bd2c16;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6e512c;
    font-style: italic;
}

/* Мобильная навигация */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #21120a;
    border-top: 2px solid #8c6939;
    padding: 10px 20px;
    justify-content: space-around;
    z-index: 1000;
}

.mobile-nav-item {
    text-align: center;
    text-decoration: none;
    color: #f4e5c3;
    transition: color 0.3s;
    padding: 5px;
}

.mobile-nav-item-active {
    color: #d4af37;
}

.mobile-nav-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.mobile-nav-text {
    font-size: 11px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        margin-bottom: 70px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .news-list {
        max-height: 400px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    animation: fadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .game-container { grid-template-columns: 1fr; }
}
/* Пагинация для новостей */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #d4af37;
    flex-wrap: wrap;
}

.news-pagination-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f4e5c3;
    border: 1px solid #705431;
    border-radius: 4px;
    color: #3b240f;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s;
}

.news-pagination-link:hover {
    background: linear-gradient(to bottom, #bd2c16 0%, #5c1306 100%);
    color: #fff2cc;
    border-color: #d4af37;
}

.news-pagination-current {
    background: linear-gradient(to bottom, #bd2c16 0%, #5c1306 100%);
    color: #fff2cc;
    border-color: #d4af37;
    cursor: default;
}
/* ===== TELEGRAM БЛОК ===== */
.telegram-box {
    text-align: center;
}

.telegram-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.telegram-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1e96c8 0%, #2b5b8c 100%);
    border: 1px solid #d4af37;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.telegram-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.telegram-icon {
    font-size: 32px;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.3));
}

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

.telegram-title {
    font-size: 15px;
    font-weight: bold;
    color: #fff2cc;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.telegram-description {
    font-size: 11px;
    color: #e8e8c8;
    margin-top: 2px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .telegram-link {
        padding: 10px 12px;
    }
    
    .telegram-icon {
        font-size: 28px;
    }
    
    .telegram-title {
        font-size: 14px;
    }
    
    .telegram-description {
        font-size: 10px;
    }
}
/* Стили для ссылок заголовков новостей */
.news-title-link {
    color: #5c1306;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.news-title-link:hover {
    color: #bd2c16;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .news-title-link {
        font-size: 14px;
    }
}