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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* ==================== ЭКРАНЫ ==================== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
    z-index: 10;
    overflow-y: auto;
    padding: 20px;
}

.screen.hidden {
    display: none !important;
}

.screen.active {
    display: flex !important;
}

.game-container {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 30px #ff0000;
    position: relative;
    margin: auto;
}

h1 {
    text-align: center;
    color: #ff0000;
    font-size: 2.5rem;
    font-family: 'Creepster', cursive;
    margin-bottom: 20px;
    word-wrap: break-word;
}

h2 {
    color: #ff6666;
    font-size: 1.8rem;
    margin: 0;
}

h3 {
    color: #ffaa00;
    margin-bottom: 15px;
}

/* ==================== КОД КОМНАТЫ ==================== */
#displayRoomCode {
    color: #ffaa00;
    font-weight: bold;
    background: #330000;
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid #ff0000;
    font-family: monospace;
    font-size: 1.5rem;
}

/* ==================== КНОПКА ПРОФИЛЯ ==================== */
.profile-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(26, 26, 26, 0.95);
    padding: 8px 12px;
    border-radius: 30px;
    border: 2px solid #ff0000;
}

.profile-button a {
    color: white;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: 0.2s;
}

.profile-button a:hover {
    background: #ff0000;
}

.profile-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== ФЛЕШ СООБЩЕНИЯ ==================== */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 999;
}

.flash-message {
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    animation: slideIn 0.3s;
}

.flash-success { background: #060; border-left: 5px solid #0f0; }
.flash-danger { background: #600; border-left: 5px solid #f00; }
.flash-info { background: #006; border-left: 5px solid #00f; }

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==================== ФОРМЫ ==================== */
input, button, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

input, select {
    background: #333;
    color: white;
    border: 1px solid #555;
}

input[readonly] {
    background: #222;
    color: #aaa;
    cursor: not-allowed;
}

button {
    background: #444;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #666;
    transition: 0.2s;
}

button:hover {
    background: #555;
    transform: scale(1.02);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== СТРАНИЦЫ АВТОРИЗАЦИИ ==================== */
.auth-fullscreen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
    padding: 20px;
}

.auth-box {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 30px #ff0000;
}

.auth-box h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffaa00;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #ffaa00;
    font-weight: bold;
}

.form-control {
    background: #333;
    border: 2px solid #444;
    color: white;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #ff0000;
    outline: none;
}

.form-text {
    color: #888;
    font-size: 0.8rem;
}

.auth-btn {
    background: #006600;
    border: 2px solid #00aa00;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
}

.auth-btn:hover {
    background: #008800;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: #888;
}

.auth-footer a {
    color: #ffaa00;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== ПРОФИЛЬ ==================== */
.profile-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

.profile-header {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 2px solid #ff0000;
    flex-wrap: wrap;
}

.profile-avatar .big-avatar {
    font-size: 5rem;
}

.profile-title h1 {
    color: #ff0000;
    font-size: 2.5rem;
    margin: 0;
    font-family: 'Creepster', cursive;
}

.member-since {
    color: #888;
    margin: 5px 0 0;
    font-size: 0.9rem;
}

.friend-btn {
    margin-left: auto;
    padding: 10px 20px;
    background: #006600;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.friend-btn:hover {
    background: #008800;
    transform: scale(1.05);
}

.stats-section {
    margin: 30px 0;
}

.stats-section h2 {
    color: #ffaa00;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #444;
    transition: 0.2s;
}

.stat-card:hover {
    border-color: #ff0000;
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ffaa00;
}

.stat-label {
    color: #aaa;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* ==================== ДОСТИЖЕНИЯ ==================== */
.achievement-earned {
    opacity: 1;
    border: 2px solid #ffaa00;
    background: linear-gradient(145deg, #2a2a2a, #332200);
}

.achievement-not-earned {
    opacity: 0.5;
    filter: grayscale(50%);
}

/* ==================== ДРУЗЬЯ ==================== */
.friends-section {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.friends-section h2 {
    color: #ffaa00;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.friend-item {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #444;
}

.friend-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    flex: 1;
}

.friend-item:hover {
    border-color: #ff0000;
}

.friend-avatar {
    font-size: 1.2rem;
}

.friend-name {
    font-weight: bold;
}

.friend-badge {
    color: #0f0;
    font-size: 0.9rem;
    padding: 3px 8px;
    background: #030;
    border-radius: 15px;
}

.remove-friend {
    background: none;
    border: none;
    color: #ff5555;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    width: auto;
    margin: 0;
}

.remove-friend:hover {
    color: #ff0000;
    background: none;
    transform: none;
}

.empty-list {
    color: #666;
    text-align: center;
    padding: 20px;
}

/* ==================== ТАБЛИЦА ЛИДЕРОВ ==================== */
.leaderboard-section {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.leaderboard-section h2 {
    color: #ffaa00;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.leaderboard-table {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 150px 100px;
    padding: 12px;
    border-bottom: 1px solid #444;
    align-items: center;
}

.leaderboard-row.current-user {
    background: #330000;
    border-left: 5px solid #ff0000;
}

.rank {
    font-weight: bold;
    color: #ffaa00;
}

.player-name a {
    color: white;
    text-decoration: none;
}

.player-name a:hover {
    color: #ff5555;
}

.player-money {
    color: #ffaa00;
    font-weight: bold;
}

.player-wins {
    color: #00aa00;
}

/* ==================== ЛОББИ ==================== */
.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

#settingsBtn {
    width: auto;
    padding: 8px 15px;
    background: #444;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    background: #222;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #444;
    flex-wrap: wrap;
    gap: 10px;
}

.alive-count { color: #0f0; }
.dead-count { color: #f0f; }
.money { color: #ff0; }
.hearts { color: #f44; font-size: 1.2rem; }

/* ==================== ИГРОКИ В ЛОББИ ==================== */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 10px;
}

.player-card {
    padding: 10px 5px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    background: #2a2a2a;
    border: 2px solid #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
    position: relative;
}

/* Живые игроки - зеленый */
.player-card.alive {
    background: #1a3a1a;
    border-color: #00aa00;
    color: #aaffaa;
}

/* Мертвые игроки - серый (пока не используется в лобби) */
.player-card.dead {
    background: #3a1a1a;
    border-color: #aa0000;
    color: #ffaaaa;
    opacity: 0.7;
}

/* Текущий игрок (ты) - желтый */
.player-card.you {
    border-width: 3px;
    border-color: #ffaa00;
    background: #332200;
    color: #ffffaa;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* Хост комнаты - синий (дополнительно к alive) */
.player-card.host {
    border-color: #0066ff !important;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
    position: relative;
}

.player-card.host::after {
    content: "👑";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 14px;
    background: #0066ff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ==================== КНОПКИ РЕЖИМОВ ==================== */
.mode-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.mode-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Кнопка для младших - зеленая */
.kids-btn { 
    background: #006600 !important; 
    border: 2px solid #00aa00 !important;
    color: white !important;
}

.kids-btn:hover { 
    background: #008800 !important; 
    transform: scale(1.02);
    box-shadow: 0 0 20px #00ff00;
}

/* Кнопка для взрослых - красная */
.adults-btn { 
    background: #660000 !important; 
    border: 2px solid #aa0000 !important;
    color: white !important;
}

.adults-btn:hover { 
    background: #880000 !important; 
    transform: scale(1.02);
    box-shadow: 0 0 20px #ff0000;
}

/* Отключаем кнопки для не-хоста */
.mode-btn:disabled,
.mode-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== КОНТРОЛЫ ХОСТА ==================== */
.host-controls {
    margin-top: 20px;
    padding: 15px;
    background: #1a2a3a;
    border-radius: 10px;
    border: 2px solid #0066ff;
    color: #aaddff;
}

.host-controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.host-controls input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

/* Скрываем контролы для не-хоста */
.host-controls.hidden {
    display: none;
}

/* ==================== НАСТРОЙКИ КОМНАТЫ ==================== */
.settings-panel {
    background: #1a2a3a;
    border: 2px solid #0066ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-panel.hidden {
    display: none;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.settings-header h3 {
    color: #aaddff;
    margin: 0;
}

.close-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #660000;
    border: 2px solid #aa0000;
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
}

.close-btn:hover {
    background: #880000;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.settings-grid select {
    width: 100%;
    padding: 10px;
    background: #2a3a4a;
    color: white;
    border: 2px solid #0066ff;
    border-radius: 5px;
    font-size: 0.9rem;
}

.settings-grid label {
    display: block;
    color: #aaddff;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.random-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaddff;
    cursor: pointer;
    padding: 10px;
    background: #2a3a4a;
    border-radius: 5px;
}

.random-checkbox input {
    width: auto;
    margin: 0;
}

/* ==================== ИГРА ==================== */
.timer {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    color: #f00;
    margin: 10px 0;
    text-shadow: 0 0 20px #f00;
}

.timer.small { font-size: 2rem; }

.timer.timeout {
    color: #fff;
    animation: timeoutPulse 0.5s infinite;
}

@keyframes timeoutPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 30px #fff; }
    50% { opacity: 0.7; text-shadow: 0 0 50px #fff; }
}

.question-box {
    background: #222;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border: 2px solid #444;
}

#questionText {
    font-size: 1.3rem;
    line-height: 1.5;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.option-btn {
    min-height: 80px;
    background: #2a2a2a;
    border: 2px solid #444;
    white-space: normal;
    word-wrap: break-word;
    padding: 15px;
}

.option-btn:disabled {
    opacity: 0.5;
}

.progress-area {
    text-align: center;
    margin-top: 10px;
    color: #aaa;
}

.results-table {
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.results-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    font-weight: bold;
    color: #ff0;
    padding: 10px;
    border-bottom: 2px solid #444;
}

.result-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #333;
    gap: 10px;
}

.result-row.correct { background: rgba(0, 255, 0, 0.1); }
.result-row.wrong { background: rgba(255, 0, 0, 0.1); }
.result-row.ghost { background: rgba(255, 0, 255, 0.1); }

.correct-answer-box {
    background: #222;
    border: 2px solid #ff0;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    color: #ff0;
    font-size: 1.2rem;
}

/* ==================== GAME OVER ==================== */
.final-scores {
    background: #222;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.final-scores div {
    padding: 8px;
    border-bottom: 1px solid #444;
}

.game-over-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.game-over-buttons button {
    flex: 1;
    min-width: 150px;
}

/* ==================== ЧАТ ==================== */
.chat-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 280px;
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #444;
    border-radius: 10px;
    z-index: 1000;
    transition: 0.3s;
}

.chat-container.hidden {
    display: none;
}

.chat-container.minimized {
    height: 40px;
    overflow: hidden;
}

.chat-header {
    background: #2a2a2a;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.chat-header span:first-child {
    color: #ff0;
    font-weight: bold;
}

.chat-toggle {
    color: #aaa;
    font-size: 1.2rem;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #1a1a1a;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px;
    background: #222;
    border-radius: 5px;
    border-left: 3px solid #f00;
    word-wrap: break-word;
}

.chat-message.system {
    border-left-color: #ff0;
    color: #ff0;
}

.message-sender {
    color: #f55;
    font-weight: bold;
    margin-right: 5px;
}

.chat-input-area {
    display: flex;
    padding: 8px;
    background: #222;
    border-top: 1px solid #444;
}

#chatInput {
    flex: 1;
    margin: 0;
    padding: 8px;
    background: #333;
}

.chat-input-area button {
    width: 40px;
    margin: 0 0 0 8px;
    padding: 8px;
    background: #444;
}

/* ==================== МАГАЗИН ==================== */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.emoji-special {
    opacity: 0.7;
    border: 2px solid #ffaa00;
}

.shop-section {
    margin-top: 50px;
    border-top: 2px solid #444;
    padding-top: 30px;
}

.shop-section h2 {
    color: #ffaa00;
    margin-bottom: 20px;
}

/* ==================== МУЗЫКА ==================== */
.music-panel {
    background: #222;
    border: 2px solid #444;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
}

.music-panel.hidden {
    display: none;
}

#musicTracksList div {
    padding: 8px;
    margin: 4px 0;
    background: #2a2a2a;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s;
}

#musicTracksList div:hover {
    background: #3a3a3a;
}

#musicTracksList div.playing {
    background: #006600;
    border-left: 5px solid #ffaa00;
    font-weight: bold;
}

.music-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.music-controls button {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
}

/* ==================== БОНУСЫ ==================== */
.bonus-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 20px;
}

.bonus-card {
    background: #1a1a1a;
    border: 2px solid #ffaa00;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.bonus-timer {
    font-size: 2rem;
    color: #00ff00;
    margin: 20px 0;
    font-family: monospace;
}

.bonus-claim-btn {
    background: #006600;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.bonus-claim-btn:hover {
    background: #008800;
    transform: scale(1.02);
}

.bonus-claim-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

.bonus-progress {
    background: #333;
    height: 20px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.bonus-progress-fill {
    height: 100%;
    background: #00ff00;
    transition: width 0.3s;
}

/* ==================== ТЕЛЕГРАМ КАНАЛЫ ==================== */
.telegram-bar {
    margin-top: 25px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    border: 1px solid #333;
}

.telegram-bar a {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    border: 2px solid transparent;
}

.tg-main {
    background: #0088cc;
    color: white;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.tg-main:hover {
    background: #006699;
    transform: scale(1.02);
    border-color: #ffaa00;
}

.tg-partner {
    background: #2a2a2a;
    color: #ffaa00;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.tg-partner:hover {
    background: #3a3a3a;
    transform: scale(1.02);
    border-color: #ffaa00;
}

.tg-icon {
    font-size: 1.2rem;
}

/* ==================== ОВЕРЛЕЙ ==================== */
.rotate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotate-overlay.hidden {
    display: none !important;
}

.rotate-message {
    text-align: center;
    padding: 20px;
}

.rotate-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: rotate 2s infinite;
}

@keyframes rotate {
    0%,100% { transform: rotate(0deg); }
    25%,75% { transform: rotate(-90deg); }
}

.phone {
    width: 60px;
    height: 100px;
    border: 3px solid white;
    border-radius: 10px;
    position: relative;
    margin: 30px auto;
    animation: phoneRotate 2s infinite;
}

.phone::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ff0000;
    border-radius: 50%;
}

@keyframes phoneRotate {
    0%,100% { transform: rotate(0deg); }
    25%,75% { transform: rotate(90deg); }
}

/* ==================== КОНСОЛЬ ==================== */
.console-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f0;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
}

/* ==================== СКРОЛЛ ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== МЕДИА ==================== */
@media (max-width: 768px) {
    .game-container { padding: 20px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .profile-header { flex-direction: column; text-align: center; }
    .friend-btn { margin: 0 auto; }
    .options-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .mode-buttons { flex-direction: column; }
    .game-over-buttons { flex-direction: column; }
    .chat-container { width: 240px; }
    .leaderboard-row { 
        grid-template-columns: 30px 1fr 100px 80px;
        font-size: 0.9rem;
    }
    .auth-box { padding: 20px; }
    .telegram-bar { flex-direction: column; }
    .tg-main, .tg-partner { width: 100%; }
    .music-controls { flex-direction: column; }
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}