--- START OF FILE style.css ---
```css
/* --- START OF FILE style.css --- */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg-color: #121212;
    --header-bg: #1a1a1a;
    --card-bg: #1e1e1e;
    --primary: #0088cc;
    --primary-hover: #0077b3;
    --success: #4CAF50;
    --success-hover: #45a049;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --dev-color: #ff9800;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text); margin: 0; padding: 0; }
.hidden { display: none !important; }

/* Шапка */
.header { background-color: var(--header-bg); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.5); position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: bold; color: var(--primary); text-decoration: none; }
.header-nav { display: flex; gap: 20px; margin-left: 30px; flex-grow: 1; }
.nav-item-wrapper { position: relative; display: inline-block; cursor: pointer; }
.nav-item-wrapper a { color: var(--text-muted); text-decoration: none; font-size: 16px; transition: 0.2s; }
.nav-item-wrapper a:hover { color: var(--text); }
.badge { background: #e53935; color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; position: absolute; top: -8px; right: -15px; font-weight: bold; }
.user-menu { display: flex; align-items: center; gap: 15px; }
.profile-info { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 10px; border-radius: 8px; transition: 0.2s; }
.profile-info:hover { background-color: #333; }
.profile-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: #444; object-fit: cover; }
.profile-name { font-weight: 600; font-size: 16px; user-select: none; }

/* Колокольчик уведомлений */
.bell-wrapper { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #2a2a2a; transition: 0.2s; font-size: 20px;}
.bell-wrapper:hover { background: #333; }
.bell-badge { background: #e53935; color: white; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 10px; position: absolute; top: -5px; right: -5px; pointer-events: none; }
.alerts-dropdown { position: absolute; top: 55px; right: 0; background: var(--card-bg); border: 1px solid #333; width: 340px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.8); z-index: 200; overflow: hidden; display: none; flex-direction: column; }
.alerts-dropdown.show { display: flex; }
.alerts-header { background: #2a2a2a; padding: 10px 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333;}
.alerts-header button { background: none; color: var(--primary); padding: 0; font-size: 12px; height: auto; font-weight: normal; }
.alerts-header button:hover { background: none; text-decoration: underline; }
.alerts-body { max-height: 300px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px;}
.alert-item { background: #121212; padding: 12px; border-radius: 6px; border-left: 3px solid var(--primary); font-size: 13px; line-height: 1.4; position: relative; display: flex; flex-direction: column; gap: 5px; transition: 0.2s;}
.alert-item.unread { background: #1e1e1e; border-left: 3px solid var(--dev-color); }
.alert-date { font-size: 11px; color: #888; display: flex; justify-content: space-between;}
.alert-read-btn { cursor: pointer; color: var(--primary); font-weight: bold; background: none; border: none; padding: 0; font-size: 11px;}
.alert-read-btn:hover { text-decoration: underline; }

/* Панель статистики */
.stats-banner { display: flex; justify-content: center; gap: 30px; background: var(--card-bg); padding: 15px 20px; margin: 20px auto 0; max-width: 1160px; border-radius: 12px; font-weight: 600; color: var(--text-muted); font-size: 16px; flex-wrap: wrap; }
.stats-banner span { color: var(--text); }

/* Основная сетка */
.main-layout { max-width: 1200px; margin: 30px auto 40px; padding: 0 20px; display: grid; grid-template-columns: 3fr 1fr; gap: 30px; min-height: 50vh;}
@media (max-width: 800px) { .main-layout { grid-template-columns: 1fr; } }
.card-box { background-color: var(--card-bg); padding: 25px; border-radius: 12px; }
h2, h3 { margin-top: 0; }
h3 { margin-bottom: 20px; }

/* Кнопки */
button { background-color: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background 0.2s; font-weight: 600; }
button:hover { background-color: var(--primary-hover); }
button:disabled { background-color: #555; cursor: not-allowed; color: #888; }
.btn-success { background-color: var(--success); }
.btn-success:hover { background-color: var(--success-hover); }
.btn-danger { background-color: #e53935; padding: 8px 15px; font-size: 14px;}
.btn-danger:hover { background-color: #c62828; }
.btn-dev { background-color: var(--dev-color); width: 100%; margin-top: 10px; }

/* Управление Лобби */
.controls-card { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.controls-row { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.create-group { display: flex; gap: 15px; flex-wrap: wrap; }
.join-group { display: flex; gap: 10px; }
.join-group input { padding: 10px; border-radius: 8px; border: 1px solid #444; background: #121212; color: white; width: 140px; outline: none; }
.join-group input:focus { border-color: var(--primary); }
.my-lobby-panel { background: #2a2a2a; border: 1px solid var(--success); padding: 15px 20px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}

/* Списки */
.lobby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.lobby-item { background-color: var(--card-bg); padding: 20px; border-radius: 12px; display: flex; flex-direction: column; gap: 15px; border-left: 5px solid var(--primary); }
.lobby-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 10px; }
.lobby-id { font-weight: bold; font-size: 18px; }
.lobby-creator span { color: #fff; font-weight: bold; }
.lobby-details { font-size: 13px; color: #888; margin-top: -5px; }

.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.leaderboard-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #2a2a2a; border-radius: 8px; }
.leaderboard-item .user-meta { display: flex; align-items: center; gap: 10px; }
.leaderboard-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #444; }
.leaderboard-item .rank { color: var(--primary); font-weight: bold; width: 25px; }
.leaderboard-item .pts { color: var(--success); font-weight: bold; }

/* Админка - Таблица и Репорты */
.admin-search { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #333; background: #121212; color: white; margin-bottom: 15px; outline: none; }
.admin-search:focus { border-color: var(--primary); }
.table-wrapper { overflow-x: auto; overflow-y: auto; max-height: 400px; border-radius: 8px; background: #121212; border: 1px solid #333; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.admin-table th, .admin-table td { padding: 12px 15px; border-bottom: 1px solid #333; white-space: nowrap;}
.admin-table th { background: #2a2a2a; position: sticky; top: 0; z-index: 10; border-bottom: 2px solid #444;}

/* Визуальный просмотр репорта */
.report-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; max-height: 60vh; overflow: hidden; }
@media (max-width: 800px) { .report-layout { grid-template-columns: 1fr; overflow-y: auto;} }
.report-chat { background: #121212; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden;}
.report-chat-header { background: #2a2a2a; padding: 10px; font-weight: bold; font-size: 14px; border-bottom: 1px solid #333; }
.report-chat-messages { flex-grow: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px;}
.report-timeline { background: #121212; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden;}
.report-timeline-messages { flex-grow: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 5px; font-size: 13px;}
.log-event { padding: 8px; border-radius: 6px; background: #1e1e1e; display: flex; gap: 10px; }
.log-event .time { color: #888; flex-shrink: 0; font-family: monospace;}
.log-event.system { border-left: 3px solid var(--dev-color); }
.log-event.action { border-left: 3px solid var(--primary); }

/* Модальные окна */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 1000; overflow-y: auto; padding: 20px;}
.modal-content { background: var(--card-bg); padding: 30px; border-radius: 12px; width: 100%; max-width: 400px; position: relative; text-align: center; margin: auto; border: 1px solid #333;}
.close-btn { position: absolute; top: 15px; right: 15px; background: none; color: white; padding: 0; font-size: 24px; cursor: pointer; }
.copy-box { background: #121212; padding: 15px; border-radius: 8px; font-size: 24px; letter-spacing: 2px; font-weight: bold; color: var(--primary); margin: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 20px; }
.form-group select, .form-group input, .form-group textarea { background: #121212; color: white; border: 1px solid #333; padding: 10px; border-radius: 8px; font-size: 16px; outline: none; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.profile-edit-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px; display: block; object-fit: cover; background: #333; border: 3px solid var(--primary); }
.file-upload-btn { display: inline-block; background: #333; color: white; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 14px; margin-bottom: 20px; }
.file-upload-btn:hover { background: #444; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stats-grid div { background: #2a2a2a; padding: 10px; border-radius: 8px; text-align: center; font-size: 14px; font-weight: bold; color: var(--text-muted); }
.stats-grid span { display: block; font-size: 22px; color: var(--success); margin-top: 5px; }
.stats-grid div:nth-child(4) span { color: #e53935; } 

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; max-height: 250px; overflow-y: auto; padding-right: 5px; margin-bottom: 20px;}
.theme-item { background: #2a2a2a; border: 2px solid transparent; border-radius: 8px; padding: 5px; cursor: pointer; text-align: center; transition: 0.2s; }
.theme-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 5px; }
.theme-item span { display: block; font-size: 12px; color: white; word-break: break-all; }
.theme-item:hover { background: #333; }
.theme-item.selected { border-color: var(--primary); background: #333; }

.news-item { background: #121212; padding: 15px; border-radius: 8px; margin-bottom: 10px; border-left: 4px solid var(--primary); text-align: left; width: 100%; overflow: hidden; }
.news-date { font-size: 12px; color: #888; margin-bottom: 5px; }
.news-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; font-size: 15px; line-height: 1.5; max-width: 100%; }


/* Футер и Куки */
.footer { background: var(--header-bg); padding: 40px 20px 20px; border-top: 1px solid #333; margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: var(--primary); margin-top: 0; margin-bottom: 15px; font-size: 18px;}
.footer-col p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 10px 0;}
.footer-col a { color: var(--text-muted); text-decoration: none; transition: 0.2s; display: block; margin-bottom: 8px; font-size: 14px;}
.footer-col a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; text-align: center; padding-top: 20px; border-top: 1px solid #333; color: #666; font-size: 13px; }
.age-rating { display: inline-block; border: 1px solid #666; padding: 3px 6px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-left: 10px;}

.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background: #1a1a1a; padding: 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.8); z-index: 9999; display: flex; justify-content: center; transition: 0.5s cubic-bezier(0.1, 1, 0.1, 1); border-top: 2px solid var(--primary); }
.cookie-banner.show { bottom: 0; }
.cookie-content { max-width: 1200px; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 14px; color: #ccc; line-height: 1.5; }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-btn { background: var(--success); white-space: nowrap; padding: 12px 25px;}
.cookie-btn:hover { background: var(--success-hover); }

/* --- ИГРОВОЕ ПОЛЕ --- */
.game-body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.game-container { flex-grow: 1; width: 100%; max-width: 1500px; margin: 10px auto; padding: 0 15px; display: flex; flex-direction: column; gap: 15px; min-height: 0; }
.turn-banner { text-align: center; padding: 12px; background: #2a2a2a; border-radius: 12px; font-size: 20px; font-weight: bold; transition: 0.3s; flex-shrink: 0; }
.turn-active { background: var(--success); color: white; }
.turn-wait { background: #e53935; color: white; }
.boards-wrapper { flex-grow: 1; display: grid; grid-template-columns: 280px 1fr; gap: 20px; min-height: 0; }
@media (max-width: 900px) { .boards-wrapper { grid-template-columns: 1fr; } .game-body { height: auto; overflow: auto; } }

.left-column-game { display: flex; flex-direction: column; gap: 15px; height: 100%; min-height: 0; }
.my-chosen-wrapper { background: var(--card-bg); padding: 15px; border-radius: 12px; text-align: center; flex-shrink: 0; border: 2px solid var(--success); }
.chosen-card-display { width: 120px; height: 120px; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #111; }
.chosen-card-display img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.mini-board-wrapper { background: var(--card-bg); padding: 15px; border-radius: 12px; text-align: center; flex-shrink: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 10px; }
.mini-card { background: var(--primary); aspect-ratio: 1; border-radius: 4px; transition: 0.3s; }
.mini-card.flipped { background: #333; opacity: 0.5; }

.chat-wrapper { flex-grow: 1; background: var(--card-bg); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; }
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 15px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-message { background: #333; padding: 8px 10px; border-radius: 8px; word-break: break-word; text-align: left; }
.chat-message span { font-weight: bold; display: block; margin-bottom: 3px; font-size: 12px;}
.chat-input { display: flex; padding: 10px; border-top: 1px solid #333; flex-shrink: 0; }
.chat-input input { flex-grow: 1; background: #121212; border: none; color: white; padding: 8px; border-radius: 4px; outline: none; }
.chat-input button { background: var(--primary); border: none; color: white; padding: 8px 12px; margin-left: 5px; border-radius: 4px; cursor: pointer; font-size: 14px;}

.main-board-wrapper { display: flex; flex-direction: column; background: var(--card-bg); padding: 15px 20px; border-radius: 12px; height: 100%; min-height: 0; }
.main-grid { flex-grow: 1; display: grid; grid-auto-rows: 1fr; gap: 12px; min-height: 0;}
@media (max-width: 1200px) { .main-grid { gap: 8px; } }

.main-card { background-color: #1e1e1e !important; border-radius: 8px; cursor: pointer; transition: 0.2s; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.5); border: 2px solid #333; margin: 0; padding: 0; }
.main-card img { flex-grow: 1; width: 100%; height: 0; object-fit: cover; object-position: top center; background-color: #1e1e1e !important; border: none; outline: none; margin: 0; padding: 0; pointer-events: none;}
.main-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.main-card.flipped { opacity: 0.3; filter: grayscale(100%); pointer-events: none; background: #111; }

.card-number { flex-shrink: 0; height: 28px; width: 100%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; font-size: 15px; background: #111; margin: 0; border-top: 1px solid #333; pointer-events: none;}
.chosen-card-highlight { border: 3px solid var(--success) !important; }