big design update
This commit is contained in:
+57
-8
@@ -17,7 +17,7 @@ class CardGame {
|
||||
this.reactionSounds = {
|
||||
'🙃': 'chat',
|
||||
'🙁': 'chat',
|
||||
'😡': 'chat',
|
||||
'😡': 'error',
|
||||
'😈': 'chat',
|
||||
'😇': 'chat',
|
||||
'😠': 'chat',
|
||||
@@ -33,24 +33,27 @@ class CardGame {
|
||||
'🪬': 'chat',
|
||||
'🤯': 'chat',
|
||||
'🤡': 'chat',
|
||||
'🤨': 'chat',
|
||||
'🤨': 'vine',
|
||||
'😑': 'chat',
|
||||
'😌': 'chat',
|
||||
'😴': 'chat',
|
||||
'🌚': 'chat',
|
||||
'🌚': 'cave',
|
||||
'🐱': 'cat',
|
||||
'🐸': 'frog',
|
||||
'🐺': 'chat',
|
||||
'🐺': 'driff',
|
||||
'🐊': 'dance',
|
||||
'🐠': 'chat',
|
||||
'🌹': 'chat',
|
||||
'🦆': 'duck',
|
||||
'🌹': 'wow',
|
||||
'🗿': 'huh',
|
||||
'👁️': 'chat',
|
||||
'💩': 'chat',
|
||||
'💩': 'fart',
|
||||
'🔩': 'pipe',
|
||||
'🔪': 'okay',
|
||||
'⚔️': 'sword',
|
||||
'🎺': 'chat',
|
||||
'🧀': 'meme',
|
||||
'🎺': 'trumpet',
|
||||
'🎁': 'chat',
|
||||
'🔮': 'chat',
|
||||
'🎲': 'chat',
|
||||
'🎯': 'chat',
|
||||
@@ -85,7 +88,16 @@ class CardGame {
|
||||
pipe: new Audio('/sounds/pipe.aac'),
|
||||
huh: new Audio('/sounds/huh.aac'),
|
||||
pogodika: new Audio('/sounds/pogodika.aac'),
|
||||
dance: new Audio('/sounds/dance.aac')
|
||||
dance: new Audio('/sounds/dance.aac'),
|
||||
fart: new Audio('/sounds/fart.aac'),
|
||||
wow: new Audio('/sounds/wow.aac'),
|
||||
cave: new Audio('/sounds/cave.aac'),
|
||||
trumpet: new Audio('/sounds/trumpet.aac'),
|
||||
driff: new Audio('/sounds/driff.aac'),
|
||||
meme: new Audio('/sounds/meme.aac'),
|
||||
error: new Audio('/sounds/error.aac'),
|
||||
vine: new Audio('/sounds/vine.aac'),
|
||||
duck: new Audio('/sounds/duck.aac')
|
||||
};
|
||||
|
||||
this.initElements();
|
||||
@@ -288,6 +300,21 @@ class CardGame {
|
||||
selectedOption.classList.add('selected');
|
||||
}
|
||||
}
|
||||
|
||||
setBackgroundColor(color) {
|
||||
this.backgroundColor = color;
|
||||
localStorage.setItem('backgroundColor', color);
|
||||
document.body.setAttribute('data-background', color);
|
||||
|
||||
// Обновляем выделение в селекторе
|
||||
document.querySelectorAll('.background-option').forEach(opt => {
|
||||
opt.classList.remove('selected');
|
||||
});
|
||||
const selectedOption = document.querySelector(`.background-option[data-bg="${color}"]`);
|
||||
if (selectedOption) {
|
||||
selectedOption.classList.add('selected');
|
||||
}
|
||||
}
|
||||
|
||||
showAlert(message) {
|
||||
if (!this.alertModal || !this.alertText) return;
|
||||
@@ -493,6 +520,11 @@ class CardGame {
|
||||
this.cardBackColor = savedCardBack;
|
||||
document.body.setAttribute('data-card-back', savedCardBack);
|
||||
|
||||
// Инициализируем цвет фона
|
||||
const savedBackground = localStorage.getItem('backgroundColor') || 'default';
|
||||
this.backgroundColor = savedBackground;
|
||||
document.body.setAttribute('data-background', savedBackground);
|
||||
|
||||
// Обновляем иконку кнопки ночного режима
|
||||
this.updateNightModeButton();
|
||||
}
|
||||
@@ -614,6 +646,14 @@ class CardGame {
|
||||
});
|
||||
});
|
||||
|
||||
// Background color selector
|
||||
document.querySelectorAll('.background-option').forEach(option => {
|
||||
option.addEventListener('click', (e) => {
|
||||
const bgColor = e.currentTarget.dataset.bg;
|
||||
this.setBackgroundColor(bgColor);
|
||||
});
|
||||
});
|
||||
|
||||
// Rules handlers
|
||||
this.rulesBtn.addEventListener('click', () => this.openRules());
|
||||
this.closeRulesBtn.addEventListener('click', () => this.closeRules());
|
||||
@@ -1755,6 +1795,15 @@ class CardGame {
|
||||
selectedOption.classList.add('selected');
|
||||
}
|
||||
|
||||
// Синхронизируем выбранный цвет фона
|
||||
document.querySelectorAll('.background-option').forEach(opt => {
|
||||
opt.classList.remove('selected');
|
||||
});
|
||||
const selectedBgOption = document.querySelector(`.background-option[data-bg="${this.backgroundColor}"]`);
|
||||
if (selectedBgOption) {
|
||||
selectedBgOption.classList.add('selected');
|
||||
}
|
||||
|
||||
// Синхронизируем состояние лога (проверяем есть ли класс hidden)
|
||||
if (this.gameLog) {
|
||||
this.logToggle.checked = !this.gameLog.classList.contains('hidden');
|
||||
|
||||
@@ -481,6 +481,28 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Выбор цвета фона -->
|
||||
<div class="setting-item">
|
||||
<span class="setting-label">🎨 Цвет фона</span>
|
||||
<div class="background-selector">
|
||||
<div class="background-option" data-bg="default">
|
||||
<div class="background-preview bg-default"></div>
|
||||
</div>
|
||||
<div class="background-option" data-bg="green">
|
||||
<div class="background-preview bg-green"></div>
|
||||
</div>
|
||||
<div class="background-option" data-bg="blue">
|
||||
<div class="background-preview bg-blue"></div>
|
||||
</div>
|
||||
<div class="background-option" data-bg="purple">
|
||||
<div class="background-preview bg-purple"></div>
|
||||
</div>
|
||||
<div class="background-option" data-bg="orange">
|
||||
<div class="background-preview bg-orange"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+457
-111
@@ -1,30 +1,126 @@
|
||||
/* ===== ПОЛНЫЙ НОЧНОЙ РЕЖИМ ===== */
|
||||
|
||||
/* Плавные переходы для всех элементов кроме летящих карт и тряски */
|
||||
*:not(.flying-card):not(.flying-card *):not(.shaking):not(.shaking *) {
|
||||
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
|
||||
/* CSS переменные для ночных тем - дефолтная синяя */
|
||||
body.night-mode:not([data-background]),
|
||||
body.night-mode[data-background="default"] {
|
||||
--theme-primary: #3b5998;
|
||||
--theme-primary-hover: #5b79b8;
|
||||
--theme-primary-dark: #2a3d52;
|
||||
--theme-secondary: #2d4159;
|
||||
--theme-secondary-dark: #1e2d3f;
|
||||
--theme-accent: #5273b8;
|
||||
--theme-accent-dark: #3b5998;
|
||||
--theme-bg-light: #2a3d52;
|
||||
--theme-bg-medium: #1e2d3f;
|
||||
--theme-bg-dark: #1a2332;
|
||||
--theme-border: #3b5998;
|
||||
--theme-success: #5273b8;
|
||||
--theme-success-bg: #2d4159;
|
||||
--theme-toggle-off: #1e2d3f;
|
||||
--theme-toggle-on: #5273b8;
|
||||
--theme-modal-overlay: rgba(26, 35, 50, 0.95);
|
||||
}
|
||||
|
||||
/* Коричневая ночная тема */
|
||||
body.night-mode[data-background="green"] {
|
||||
--theme-primary: #b8956d;
|
||||
--theme-primary-hover: #d8b58d;
|
||||
--theme-primary-dark: #4a3d32;
|
||||
--theme-secondary: #5c4c3e;
|
||||
--theme-secondary-dark: #4a3d32;
|
||||
--theme-accent: #8a7360;
|
||||
--theme-accent-dark: #6d5a47;
|
||||
--theme-bg-light: #4a3d32;
|
||||
--theme-bg-medium: #3a2d22;
|
||||
--theme-bg-dark: #2c2626;
|
||||
--theme-border: #6d5a47;
|
||||
--theme-success: #8a7360;
|
||||
--theme-success-bg: #5c4c3e;
|
||||
--theme-toggle-off: #3a2d22;
|
||||
--theme-toggle-on: #b8956d;
|
||||
--theme-modal-overlay: rgba(44, 38, 38, 0.95);
|
||||
}
|
||||
|
||||
/* Зелёная ночная тема */
|
||||
body.night-mode[data-background="blue"] {
|
||||
--theme-primary: #3d8a5f;
|
||||
--theme-primary-hover: #5daa7f;
|
||||
--theme-primary-dark: #11281c;
|
||||
--theme-secondary: #163423;
|
||||
--theme-secondary-dark: #11281c;
|
||||
--theme-accent: #2d6342;
|
||||
--theme-accent-dark: #1f4a2f;
|
||||
--theme-bg-light: #163423;
|
||||
--theme-bg-medium: #11281c;
|
||||
--theme-bg-dark: #0d080e;
|
||||
--theme-border: #1f4a2f;
|
||||
--theme-success: #2d6342;
|
||||
--theme-success-bg: #163423;
|
||||
--theme-toggle-off: #11281c;
|
||||
--theme-toggle-on: #3d8a5f;
|
||||
--theme-modal-overlay: rgba(13, 8, 14, 0.95);
|
||||
}
|
||||
|
||||
/* Фиолетовая ночная тема */
|
||||
body.night-mode[data-background="purple"] {
|
||||
--theme-primary: #8d5faa;
|
||||
--theme-primary-hover: #ad7fca;
|
||||
--theme-primary-dark: #1c1522;
|
||||
--theme-secondary: #231b2a;
|
||||
--theme-secondary-dark: #1c1522;
|
||||
--theme-accent: #4d3a5a;
|
||||
--theme-accent-dark: #352840;
|
||||
--theme-bg-light: #231b2a;
|
||||
--theme-bg-medium: #1c1522;
|
||||
--theme-bg-dark: #12091e;
|
||||
--theme-border: #352840;
|
||||
--theme-success: #4d3a5a;
|
||||
--theme-success-bg: #231b2a;
|
||||
--theme-toggle-off: #1c1522;
|
||||
--theme-toggle-on: #8d5faa;
|
||||
--theme-modal-overlay: rgba(18, 9, 30, 0.95);
|
||||
}
|
||||
|
||||
/* Красная ночная тема */
|
||||
body.night-mode[data-background="orange"] {
|
||||
--theme-primary: #c74a3d;
|
||||
--theme-primary-hover: #e76a5d;
|
||||
--theme-primary-dark: #230907;
|
||||
--theme-secondary: #2e0b09;
|
||||
--theme-secondary-dark: #230907;
|
||||
--theme-accent: #5a1812;
|
||||
--theme-accent-dark: #3d0f0c;
|
||||
--theme-bg-light: #2e0b09;
|
||||
--theme-bg-medium: #230907;
|
||||
--theme-bg-dark: #1a0404;
|
||||
--theme-border: #3d0f0c;
|
||||
--theme-success: #5a1812;
|
||||
--theme-success-bg: #2e0b09;
|
||||
--theme-toggle-off: #230907;
|
||||
--theme-toggle-on: #c74a3d;
|
||||
--theme-modal-overlay: rgba(26, 4, 4, 0.95);
|
||||
}
|
||||
|
||||
/* Базовые стили */
|
||||
body.night-mode {
|
||||
background: #1a2332;
|
||||
background: var(--theme-bg-dark);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Night mode toggle button */
|
||||
body.night-mode .night-mode-btn {
|
||||
background: #2a3d52;
|
||||
border-color: #3b5998;
|
||||
background: var(--theme-primary-dark);
|
||||
border-color: var(--theme-primary);
|
||||
}
|
||||
|
||||
body.night-mode .night-mode-btn:hover {
|
||||
background: #3b5998;
|
||||
background: var(--theme-primary);
|
||||
box-shadow: 0 4px 12px rgba(94, 204, 123, 0.3);
|
||||
}
|
||||
|
||||
/* Контейнеры */
|
||||
body.night-mode .container {
|
||||
background: #243447;
|
||||
background: var(--theme-bg-light);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
@@ -52,9 +148,9 @@ body.night-mode h6 {
|
||||
body.night-mode input[type="text"],
|
||||
body.night-mode input[type="number"],
|
||||
body.night-mode textarea {
|
||||
background: #2a3d52;
|
||||
background: var(--theme-bg-light);
|
||||
color: #ffffff;
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode input[type="text"]:focus,
|
||||
@@ -66,7 +162,7 @@ body.night-mode textarea:focus {
|
||||
body.night-mode input[type="text"]::placeholder,
|
||||
body.night-mode input[type="number"]::placeholder,
|
||||
body.night-mode textarea::placeholder {
|
||||
color: #9ca3af;
|
||||
color: var(--theme-secondary-dark);
|
||||
}
|
||||
|
||||
/* Кнопки */
|
||||
@@ -75,22 +171,22 @@ body.night-mode .btn {
|
||||
}
|
||||
|
||||
body.night-mode .btn-primary {
|
||||
background: #3b5998;
|
||||
background: var(--theme-primary);
|
||||
color: #ffffff!important;
|
||||
}
|
||||
|
||||
body.night-mode .btn-primary:hover {
|
||||
background: #4c6baf;
|
||||
background: var(--theme-primary-hover);
|
||||
box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4);
|
||||
}
|
||||
|
||||
body.night-mode .btn-secondary {
|
||||
background: #2a3d52;
|
||||
background: var(--theme-primary-dark);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body.night-mode .btn-secondary:hover {
|
||||
background: #3b5998;
|
||||
background: var(--theme-primary);
|
||||
}
|
||||
|
||||
body.night-mode .btn:disabled {
|
||||
@@ -98,38 +194,38 @@ body.night-mode .btn:disabled {
|
||||
}
|
||||
|
||||
body.night-mode .btn-primary:disabled:hover {
|
||||
background: #3b5998 !important;
|
||||
background: var(--theme-primary) !important;
|
||||
}
|
||||
|
||||
body.night-mode .btn-secondary:disabled:hover {
|
||||
background: #2a3d52 !important;
|
||||
background: var(--theme-primary-dark) !important;
|
||||
}
|
||||
|
||||
/* Invite Link Block */
|
||||
body.night-mode #invite-link-block {
|
||||
background: rgba(59, 89, 152, 0.2);
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .invite-hint {
|
||||
color: #9ca3af;
|
||||
color: var(--theme-secondary-dark);
|
||||
}
|
||||
|
||||
body.night-mode .invite-link {
|
||||
background: #2a3d52;
|
||||
color: #5ecc7b;
|
||||
border-color: #3b5998;
|
||||
background: var(--theme-bg-light);
|
||||
color: var(--theme-accent);
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .btn-copy,
|
||||
body.night-mode .btn-share {
|
||||
background: #3b5998;
|
||||
color: #ffffff;
|
||||
background: var(--theme-primary-dark);
|
||||
border-color: var(--theme-primary);
|
||||
}
|
||||
|
||||
body.night-mode .btn-copy:hover,
|
||||
body.night-mode .btn-share:hover {
|
||||
background: #4c6baf;
|
||||
background: var(--theme-primary);
|
||||
}
|
||||
|
||||
/* Bot Game Section */
|
||||
@@ -142,7 +238,7 @@ body.night-mode #bot-game-section h3 {
|
||||
}
|
||||
|
||||
body.night-mode .btn-bot {
|
||||
background: linear-gradient(135deg, #3b5998 0%, #2a3d52 100%);
|
||||
background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
@@ -152,8 +248,8 @@ body.night-mode .btn-bot:hover {
|
||||
|
||||
/* Rooms List */
|
||||
body.night-mode .room-card {
|
||||
background: #2a3d52;
|
||||
border-color: #3b5998;
|
||||
background: var(--theme-bg-light);
|
||||
border-color: var(--theme-border);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -171,8 +267,8 @@ body.night-mode .room-card p {
|
||||
}
|
||||
|
||||
body.night-mode .room-card.room-full {
|
||||
background: #1e2d3f;
|
||||
border-color: #374151;
|
||||
background: var(--theme-bg-medium);
|
||||
border-color: var(--theme-border);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
@@ -186,19 +282,19 @@ body.night-mode #players-list {
|
||||
}
|
||||
|
||||
body.night-mode .player-card {
|
||||
background: #2a3d52;
|
||||
border-color: #3b5998;
|
||||
background: var(--theme-bg-light);
|
||||
border-color: var(--theme-border);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body.night-mode .player-card.ready {
|
||||
border-color: #2d5a3f;
|
||||
background: #1e3d2b;
|
||||
border-color: var(--theme-success);
|
||||
background: var(--theme-success-bg);
|
||||
}
|
||||
|
||||
body.night-mode .player-card.current {
|
||||
border-color: #5ecc7b;
|
||||
background: #1e3d2b;
|
||||
border-color: var(--theme-success);
|
||||
background: var(--theme-success-bg);
|
||||
box-shadow: 0 0 20px rgba(94, 204, 123, 0.3);
|
||||
}
|
||||
|
||||
@@ -243,25 +339,25 @@ body.night-mode .deck-label {
|
||||
}
|
||||
|
||||
body.night-mode .toggle-slider {
|
||||
background-color: #3b5998;
|
||||
background-color: var(--theme-toggle-off);
|
||||
}
|
||||
|
||||
body.night-mode input:checked + .toggle-slider {
|
||||
background-color: #2d5a3f;
|
||||
background-color: var(--theme-toggle-on);
|
||||
}
|
||||
|
||||
body.night-mode .deck-size-toggle input[type="checkbox"]:checked ~ .deck-label:last-child {
|
||||
color: #5ecc7b;
|
||||
color: var(--theme-toggle-on);
|
||||
}
|
||||
|
||||
body.night-mode .deck-size-toggle input[type="checkbox"]:not(:checked) ~ .deck-label:first-child {
|
||||
color: #5ecc7b;
|
||||
color: var(--theme-toggle-on);
|
||||
}
|
||||
|
||||
/* Countdown Timer */
|
||||
body.night-mode .countdown-timer {
|
||||
background: linear-gradient(135deg, #2d5a3f, #1e3d2b);
|
||||
border-color: #5ecc7b;
|
||||
background: linear-gradient(135deg, var(--theme-success), var(--theme-success-bg));
|
||||
border-color: var(--theme-success);
|
||||
}
|
||||
|
||||
body.night-mode #countdown-number {
|
||||
@@ -269,34 +365,34 @@ body.night-mode #countdown-number {
|
||||
}
|
||||
|
||||
body.night-mode #countdown-text {
|
||||
color: #5ecc7b;
|
||||
color: var(--theme-success);
|
||||
}
|
||||
|
||||
/* Модальные окна */
|
||||
body.night-mode .modal {
|
||||
background-color: rgba(26, 35, 50, 0.95);
|
||||
background-color: var(--theme-modal-overlay);
|
||||
}
|
||||
|
||||
body.night-mode .modal-content,
|
||||
body.night-mode .settings-modal-content,
|
||||
body.night-mode .alert-modal .modal-content,
|
||||
body.night-mode .rules-modal .modal-content {
|
||||
background: #243447;
|
||||
background: var(--theme-bg-dark);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
body.night-mode #settings-modal .modal-content {
|
||||
background: #243447;
|
||||
background: var(--theme-bg-dark);
|
||||
}
|
||||
|
||||
body.night-mode .close-modal-btn {
|
||||
background: #3b5998;
|
||||
background: var(--theme-primary);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body.night-mode .close-modal-btn:hover {
|
||||
background: #4c6baf;
|
||||
background: var(--theme-primary-hover);
|
||||
}
|
||||
|
||||
/* Settings */
|
||||
@@ -314,7 +410,7 @@ body.night-mode .setting-label {
|
||||
|
||||
/* Правила */
|
||||
body.night-mode .rules-content {
|
||||
background: #243447;
|
||||
background: var(--theme-bg-light);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -370,10 +466,7 @@ body.night-mode .alert-text {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Игровой стол */
|
||||
body.night-mode .game-table {
|
||||
background: linear-gradient(155deg, #2a3d52 0%, #1a2332 100%);
|
||||
}
|
||||
/* Игровой стол - фон задаётся через data-background */
|
||||
|
||||
body.night-mode .game-circle {
|
||||
background: radial-gradient(circle, #1e2d3f 0%, #141d2b 100%);
|
||||
@@ -490,27 +583,33 @@ body.night-mode .card-back {
|
||||
|
||||
/* Deck count */
|
||||
body.night-mode .deck-count {
|
||||
background: #1e3d2b;
|
||||
background: var(--theme-success-bg);
|
||||
color: #5ecc7b;
|
||||
border-color: #2d5a3f;
|
||||
border-color: var(--theme-success);
|
||||
}
|
||||
|
||||
body.night-mode .deck-count-badge {
|
||||
background: #2d5a3f;
|
||||
background: var(--theme-success);
|
||||
color: #ffffff;
|
||||
border-color: #2d5a3f;
|
||||
border-color: var(--theme-success);
|
||||
}
|
||||
|
||||
/* Discard pile */
|
||||
body.night-mode .discard-pile {
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
/* Chosen suit */
|
||||
body.night-mode .chosen-suit {
|
||||
background: #2a3d52;
|
||||
body.night-mode #chat-input {
|
||||
background: var(--theme-bg-medium);
|
||||
color: #ffffff;
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .chosen-suit {
|
||||
background: var(--theme-bg-light);
|
||||
color: #ffffff;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .chosen-suit-label {
|
||||
@@ -520,7 +619,7 @@ body.night-mode .chosen-suit-label {
|
||||
/* Индикатор выбранной масти */
|
||||
body.night-mode #chosen-suit-indicator {
|
||||
background: rgb(140 147 157);
|
||||
border-color: #5ecc7b;
|
||||
border-color: var(--theme-success);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
@@ -556,9 +655,9 @@ body.night-mode .suit-emoji-indicator.spades {
|
||||
|
||||
/* Player info - табло игрока */
|
||||
body.night-mode .player-info {
|
||||
background: rgba(42, 61, 82, 0.95);
|
||||
background: var(--theme-bg-light);
|
||||
color: #ffffff;
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .player-info h3 {
|
||||
@@ -578,7 +677,7 @@ body.night-mode .player-score {
|
||||
}
|
||||
|
||||
body.night-mode .player-info.current-turn {
|
||||
background: linear-gradient(135deg, #3b5998 0%, #4c6baf 100%);
|
||||
background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
|
||||
border-color: #5ecc7b !important;
|
||||
}
|
||||
|
||||
@@ -589,7 +688,7 @@ body.night-mode .player-info.current-turn .player-score {
|
||||
|
||||
/* Player hand */
|
||||
body.night-mode .player-hand {
|
||||
background: rgba(42, 61, 82, 0.95);
|
||||
background: var(--theme-bg-light);
|
||||
}
|
||||
|
||||
body.night-mode .player-hand.current-turn {
|
||||
@@ -602,7 +701,7 @@ body.night-mode .opponent-area {
|
||||
}
|
||||
|
||||
body.night-mode .opponent-info {
|
||||
background: rgba(42, 61, 82, 0.95);
|
||||
background: var(--theme-bg-dark);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -615,7 +714,7 @@ body.night-mode .opponent-score {
|
||||
}
|
||||
|
||||
body.night-mode .opponent-area.current-turn .opponent-info {
|
||||
background: linear-gradient(135deg, #3b5998 0%, #4c6baf 100%);
|
||||
background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
|
||||
border-color: #5ecc7b;
|
||||
box-shadow: 0 4px 15px rgba(94, 204, 123, 0.6),
|
||||
0 0 20px rgba(94, 204, 123, 0.4);
|
||||
@@ -633,23 +732,23 @@ body.night-mode .opponent-area.current-turn .opponent-cards {
|
||||
|
||||
/* Action buttons */
|
||||
body.night-mode #draw-card-btn,
|
||||
body.night-mode #skip-turn-btn {
|
||||
background: #3b5998;
|
||||
body.night-mode .chat-btn:hover {
|
||||
background: var(--theme-primary);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body.night-mode #draw-card-btn:hover,
|
||||
body.night-mode #skip-turn-btn:hover {
|
||||
background: #4c6baf;
|
||||
body.night-mode #send-chat-btn:hover {
|
||||
background: var(--theme-primary-hover);
|
||||
}
|
||||
|
||||
body.night-mode #ready-toggle-btn {
|
||||
background: #3b5998;
|
||||
background: var(--theme-primary);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body.night-mode #ready-toggle-btn:hover {
|
||||
background: #4c6baf;
|
||||
background: var(--theme-primary-hover);
|
||||
}
|
||||
|
||||
body.night-mode #ready-toggle-btn.ready {
|
||||
@@ -661,9 +760,9 @@ body.night-mode #ready-toggle-btn.ready:hover {
|
||||
}
|
||||
|
||||
/* Leave game button */
|
||||
body.night-mode #leave-game-btn {
|
||||
background: #3b5998;
|
||||
color: #ffffff;
|
||||
body.night-mode .leave-game-btn {
|
||||
background: #3d1e1e;
|
||||
border-color: #e74c3c;
|
||||
}
|
||||
|
||||
body.night-mode #leave-game-btn:hover {
|
||||
@@ -672,17 +771,17 @@ body.night-mode #leave-game-btn:hover {
|
||||
|
||||
/* Settings button */
|
||||
body.night-mode #settings-btn {
|
||||
background: #2a3d52;
|
||||
background: var(--theme-primary-dark);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
body.night-mode #settings-btn:hover {
|
||||
background: #3b5998;
|
||||
body.night-mode .settings-btn:hover {
|
||||
background: var(--theme-primary);
|
||||
}
|
||||
|
||||
/* Suit selection modal */
|
||||
body.night-mode #suit-selection-modal .modal-content {
|
||||
background: #243447;
|
||||
background: var(--theme-bg-light);
|
||||
}
|
||||
|
||||
body.night-mode .suit-selection h3 {
|
||||
@@ -690,14 +789,14 @@ body.night-mode .suit-selection h3 {
|
||||
}
|
||||
|
||||
body.night-mode .suit-btn {
|
||||
background: #373f4f;
|
||||
color: white;
|
||||
border-color: #3b5998;
|
||||
background: var(--theme-bg-medium);
|
||||
color: #ffffff;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .suit-btn:hover {
|
||||
background: #3b5998;
|
||||
border-color: #5ecc7b;
|
||||
body.night-mode .rules-btn:hover {
|
||||
background: var(--theme-primary);
|
||||
border-color: var(--theme-primary);
|
||||
}
|
||||
|
||||
body.night-mode .suit-btn {
|
||||
@@ -717,9 +816,9 @@ body.night-mode.white-suits .suit-btn[data-suit="clubs"] .suit-emoji {
|
||||
}
|
||||
|
||||
/* Suit symbols (анимация выбора масти) */
|
||||
body.night-mode .suit-symbol {
|
||||
background: #2a3d52;
|
||||
border-color: #3b5998;
|
||||
body.night-mode .settings-btn {
|
||||
background: var(--theme-primary-dark);
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode.white-suits .suit-symbol.hearts,
|
||||
@@ -738,8 +837,8 @@ body.night-mode .suit-arrow {
|
||||
}
|
||||
|
||||
/* Results modal */
|
||||
body.night-mode #results-modal .modal-content {
|
||||
background: #243447;
|
||||
body.night-mode .chat-modal-content {
|
||||
background: var(--theme-bg-light);
|
||||
}
|
||||
|
||||
body.night-mode #results-content h2 {
|
||||
@@ -747,14 +846,14 @@ body.night-mode #results-content h2 {
|
||||
}
|
||||
|
||||
body.night-mode .result-item {
|
||||
background: #2a3d52;
|
||||
background: var(--theme-bg-light);
|
||||
color: #ffffff;
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .result-item.winner {
|
||||
background: #1e3d2b;
|
||||
border-color: #2d5a3f;
|
||||
background: var(--theme-success-bg);
|
||||
border-color: var(--theme-success);
|
||||
}
|
||||
|
||||
body.night-mode .result-item h4 {
|
||||
@@ -808,9 +907,9 @@ body.night-mode.white-suits .result-card.clubs .card-suit {
|
||||
|
||||
/* Game log */
|
||||
body.night-mode #game-log {
|
||||
background: rgba(26, 35, 50, 0.9);
|
||||
background: var(--theme-bg-dark);
|
||||
color: #ffffff;
|
||||
border-color: #3b5998;
|
||||
border-color: var(--theme-border);
|
||||
}
|
||||
|
||||
body.night-mode .log-entry {
|
||||
@@ -847,11 +946,11 @@ body.night-mode .suit-emoji-log.spades {
|
||||
|
||||
/* Error screen */
|
||||
body.night-mode #error-screen {
|
||||
background: #1a2332;
|
||||
background: var(--theme-bg-dark);
|
||||
}
|
||||
|
||||
body.night-mode #error-screen .container {
|
||||
background: #243447;
|
||||
background: var(--theme-bg-medium);
|
||||
}
|
||||
|
||||
body.night-mode #error-message {
|
||||
@@ -860,12 +959,12 @@ body.night-mode #error-message {
|
||||
|
||||
/* Lobby screen */
|
||||
body.night-mode #lobby-screen {
|
||||
background: #1a2332;
|
||||
background: var(--theme-bg-dark);
|
||||
}
|
||||
|
||||
/* Room screen */
|
||||
body.night-mode #room-screen {
|
||||
background: #1a2332;
|
||||
body.night-mode .chat-messages {
|
||||
background: var(--theme-bg-medium);
|
||||
}
|
||||
|
||||
/* Все параграфы и тексты */
|
||||
@@ -892,16 +991,16 @@ body.night-mode ::-webkit-scrollbar {
|
||||
}
|
||||
|
||||
body.night-mode ::-webkit-scrollbar-track {
|
||||
background: #1a2332;
|
||||
background: var(--theme-bg-dark);
|
||||
}
|
||||
|
||||
body.night-mode ::-webkit-scrollbar-thumb {
|
||||
background: #3b5998;
|
||||
background: var(--theme-primary);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
body.night-mode ::-webkit-scrollbar-thumb:hover {
|
||||
background: #4c6baf;
|
||||
background: var(--theme-primary-hover);
|
||||
}
|
||||
|
||||
/* Mobile only elements */
|
||||
@@ -909,15 +1008,262 @@ body.night-mode .mobile-only {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Flying card animation */
|
||||
/* Flying card animation - цвет управляется через data-card-back */
|
||||
body.night-mode .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #1e3d2b, #2d5a3f);
|
||||
border-color: #303030 !important;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Deck shuffling */
|
||||
body.night-mode .deck-shuffling {
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
|
||||
/* Card back selector в ночном режиме */
|
||||
body.night-mode .card-back-preview {
|
||||
border: 2px solid #555;
|
||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
body.night-mode .card-back-option:hover {
|
||||
border-color: #5ecc7b;
|
||||
}
|
||||
|
||||
body.night-mode .card-back-option.selected {
|
||||
border-color: #5ecc7b;
|
||||
box-shadow: 0 0 10px rgba(94, 204, 123, 0.5);
|
||||
}
|
||||
|
||||
/* 5 вариантов цветов рубашки для ночного режима */
|
||||
body.night-mode .card-back-gray {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3a3939 20%, #7a7a7a 100%) !important;
|
||||
filter: saturate(1.1) brightness(0.93);
|
||||
border-color: #2a2a2a !important;
|
||||
}
|
||||
|
||||
body.night-mode .card-back-green {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #13301f, #2d5a3f);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
body.night-mode .card-back-blue {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #1e2d3f, #174880);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
body.night-mode .card-back-red {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1e1e, #6b1111);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
body.night-mode .card-back-purple {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1c61, #47345a);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
/* Применение выбранного цвета рубашки для ночного режима */
|
||||
body.night-mode[data-card-back="gray"] .opponent-card,
|
||||
body.night-mode[data-card-back="gray"] .deck,
|
||||
body.night-mode[data-card-back="gray"] .card-back,
|
||||
body.night-mode[data-card-back="gray"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3a3939 20%, #7a7a7a 100%) !important;
|
||||
filter: saturate(1.1) brightness(0.93);
|
||||
border-color: #2a2a2a !important;
|
||||
}
|
||||
|
||||
body.night-mode[data-card-back="green"] .opponent-card,
|
||||
body.night-mode[data-card-back="green"] .deck,
|
||||
body.night-mode[data-card-back="green"] .card-back,
|
||||
body.night-mode[data-card-back="green"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #13301f, #2d5a3f) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #13301f !important;
|
||||
}
|
||||
|
||||
body.night-mode[data-card-back="blue"] .opponent-card,
|
||||
body.night-mode[data-card-back="blue"] .deck,
|
||||
body.night-mode[data-card-back="blue"] .card-back,
|
||||
body.night-mode[data-card-back="blue"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #1e2d3f, #174880) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #1e2d3f !important;
|
||||
}
|
||||
|
||||
body.night-mode[data-card-back="red"] .opponent-card,
|
||||
body.night-mode[data-card-back="red"] .deck,
|
||||
body.night-mode[data-card-back="red"] .card-back,
|
||||
body.night-mode[data-card-back="red"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1e1e, #6b1111) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #200f0f !important;
|
||||
}
|
||||
|
||||
body.night-mode[data-card-back="purple"] .opponent-card,
|
||||
body.night-mode[data-card-back="purple"] .deck,
|
||||
body.night-mode[data-card-back="purple"] .card-back,
|
||||
body.night-mode[data-card-back="purple"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1c61, #47345a) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #241436 !important;
|
||||
}
|
||||
|
||||
/* Background selector в ночном режиме */
|
||||
body.night-mode .background-option {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
body.night-mode .background-option:hover {
|
||||
border-color: #5ecc7b;
|
||||
}
|
||||
|
||||
body.night-mode .background-option.selected {
|
||||
border-color: #5ecc7b;
|
||||
box-shadow: 0 0 10px rgba(94, 204, 123, 0.5);
|
||||
}
|
||||
|
||||
body.night-mode .background-preview {
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
/* 5 вариантов фонов для ночного режима - тёмные пастельные */
|
||||
body.night-mode .bg-default {
|
||||
background: linear-gradient(155deg, #2a3d52 0%, #1a2332 100%);
|
||||
}
|
||||
|
||||
body.night-mode .bg-green {
|
||||
background: linear-gradient(167deg, #5c4c3e 10%, #2c2626 90%);
|
||||
}
|
||||
|
||||
body.night-mode .bg-blue {
|
||||
background: linear-gradient(199deg, #163423 10%, #0d080e 80%);
|
||||
}
|
||||
|
||||
body.night-mode .bg-purple {
|
||||
background: linear-gradient(67deg, #231b2a 20%, #12091e 100%);
|
||||
}
|
||||
|
||||
body.night-mode .bg-orange {
|
||||
background: linear-gradient(322deg, #1a0404 10%, #2e0b09 70%);
|
||||
}
|
||||
|
||||
/* Применение выбранного фона для ночного режима */
|
||||
body.night-mode[data-background="default"] .game-table,
|
||||
body.night-mode:not([data-background]) .game-table {
|
||||
background: linear-gradient(155deg, #2a3d52 0%, #1a2332 100%);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="default"] .game-circle,
|
||||
body.night-mode:not([data-background]) .game-circle {
|
||||
background: radial-gradient(circle, #2d4159 0%, #1e2d3f 100%);
|
||||
border-color: #5273b8;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="green"] .game-table {
|
||||
background: linear-gradient(167deg, #5c4c3e 10%, #2c2626 90%);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="green"] .game-circle {
|
||||
background: radial-gradient(circle, #6d5a47 0%, #4a3d32 100%);
|
||||
border-color: #8a7360;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="blue"] .game-table {
|
||||
background: linear-gradient(199deg, #163423 10%, #0d080e 80%);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="blue"] .game-circle {
|
||||
background: radial-gradient(circle, #1f4a2f 0%, #11281c 100%);
|
||||
border-color: #2d6342;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="purple"] .game-table {
|
||||
background: linear-gradient(67deg, #231b2a 20%, #12091e 100%);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="purple"] .game-circle {
|
||||
background: radial-gradient(circle, #352840 0%, #1c1522 100%);
|
||||
border-color: #4d3a5a;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="orange"] .game-table {
|
||||
background: linear-gradient(322deg, #1a0404 10%, #2e0b09 70%);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="orange"] .game-circle {
|
||||
background: radial-gradient(circle, #3d0f0c 0%, #230907 100%);
|
||||
border-color: #5a1812;
|
||||
}
|
||||
|
||||
/* Фон руки игрока под каждый цвет фона */
|
||||
body.night-mode[data-background="default"] .player-hand,
|
||||
body.night-mode:not([data-background]) .player-hand {
|
||||
background: rgba(42, 61, 82, 0.95);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="green"] .player-hand {
|
||||
background: rgba(92, 76, 62, 0.95);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="blue"] .player-hand {
|
||||
background: rgba(22, 52, 35, 0.95);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="purple"] .player-hand {
|
||||
background: rgba(35, 27, 42, 0.95);
|
||||
}
|
||||
|
||||
body.night-mode[data-background="orange"] .player-hand {
|
||||
background: rgba(46, 11, 9, 0.95);
|
||||
}
|
||||
|
||||
/* Рамка карт под каждый фон для ночного режима */
|
||||
body.night-mode[data-background="default"] .card,
|
||||
body.night-mode:not([data-background]) .card {
|
||||
border-color: #1e2d3f;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="green"] .card {
|
||||
border-color: #4a3d32;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="blue"] .card {
|
||||
border-color: #11281c;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="purple"] .card {
|
||||
border-color: #1c1522;
|
||||
}
|
||||
|
||||
body.night-mode[data-background="orange"] .card {
|
||||
border-color: #230907;
|
||||
}
|
||||
|
||||
+347
-103
@@ -4,14 +4,116 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Плавные переходы для всех элементов кроме летящих карт и тряски */
|
||||
*:not(.flying-card):not(.flying-card *):not(.shaking):not(.shaking *):not(.card):not(.card *):not(.deck-shuffling):not(.deck-shuffling *) {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
html {
|
||||
/* Поддержка safe area для iOS */
|
||||
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
|
||||
}
|
||||
|
||||
/* CSS переменные для тем - дефолтная зелёная тема */
|
||||
:root,
|
||||
body:not([data-background]),
|
||||
body[data-background="default"] {
|
||||
--theme-primary: #27b790;
|
||||
--theme-primary-hover: #5eda93;
|
||||
--theme-primary-dark: #1b6d3e;
|
||||
--theme-secondary: #32a082;
|
||||
--theme-secondary-dark: #28866d;
|
||||
--theme-accent: #f5d742;
|
||||
--theme-accent-dark: #d4af37;
|
||||
--theme-bg-light: #f8f9fa;
|
||||
--theme-bg-medium: #e0e0e0;
|
||||
--theme-bg-dark: #626262;
|
||||
--theme-border: #e0e0e0;
|
||||
--theme-success: #4caf50;
|
||||
--theme-success-bg: #e8f5e9;
|
||||
--theme-toggle-off: #ccc;
|
||||
--theme-toggle-on: #1b6d3e;
|
||||
}
|
||||
|
||||
/* Бирюзовая тема */
|
||||
body[data-background="green"] {
|
||||
--theme-primary: #69b8ca;
|
||||
--theme-primary-hover: #3daac2;
|
||||
--theme-primary-dark: #2d5266;
|
||||
--theme-secondary: #3d6a7a;
|
||||
--theme-secondary-dark: #25454f;
|
||||
--theme-accent: #7db3c7;
|
||||
--theme-accent-dark: #5a8fa3;
|
||||
--theme-bg-light: #e8f0f2;
|
||||
--theme-bg-medium: #d0dee2;
|
||||
--theme-bg-dark: #8fa3ab;
|
||||
--theme-border: #c0d0d5;
|
||||
--theme-success: #5a8fa3;
|
||||
--theme-success-bg: #d8e8ed;
|
||||
--theme-toggle-off: #a0b5bd;
|
||||
--theme-toggle-on: #69b8ca;
|
||||
}
|
||||
|
||||
/* Коричневая тема */
|
||||
body[data-background="blue"] {
|
||||
--theme-primary: #c17a5d;
|
||||
--theme-primary-hover: #d89a7d;
|
||||
--theme-primary-dark: #523c26;
|
||||
--theme-secondary: #5d4539;
|
||||
--theme-secondary-dark: #3d2b1f;
|
||||
--theme-accent: #a8856a;
|
||||
--theme-accent-dark: #8b6b4d;
|
||||
--theme-bg-light: #f2ede8;
|
||||
--theme-bg-medium: #e2d5d0;
|
||||
--theme-bg-dark: #9d8a7d;
|
||||
--theme-border: #d5c5bd;
|
||||
--theme-success: #8b6b4d;
|
||||
--theme-success-bg: #ede5dd;
|
||||
--theme-toggle-off: #b5a599;
|
||||
--theme-toggle-on: #c17a5d;
|
||||
}
|
||||
|
||||
/* Фиолетовая тема */
|
||||
body[data-background="purple"] {
|
||||
--theme-primary: #ba9bd0;
|
||||
--theme-primary-hover: #c69bde;
|
||||
--theme-primary-dark: #503d6c;
|
||||
--theme-secondary: #6d5580;
|
||||
--theme-secondary-dark: #453560;
|
||||
--theme-accent: #b899d0;
|
||||
--theme-accent-dark: #9d7bb3;
|
||||
--theme-bg-light: #f0ebf5;
|
||||
--theme-bg-medium: #e0d5e8;
|
||||
--theme-bg-dark: #a896b8;
|
||||
--theme-border: #d5c5e0;
|
||||
--theme-success: #9d7bb3;
|
||||
--theme-success-bg: #ede5f2;
|
||||
--theme-toggle-off: #bfb0cf;
|
||||
--theme-toggle-on: #ba9bd0;
|
||||
}
|
||||
|
||||
/* Оливковая тема */
|
||||
body[data-background="orange"] {
|
||||
--theme-primary: #c4ca8d;
|
||||
--theme-primary-hover: #c8d07d;
|
||||
--theme-primary-dark: #6a5d54;
|
||||
--theme-secondary: #7a8254;
|
||||
--theme-secondary-dark: #6a5d54;
|
||||
--theme-accent: #bfcc8d;
|
||||
--theme-accent-dark: #a3b075;
|
||||
--theme-bg-light: #f2f0e8;
|
||||
--theme-bg-medium: #e2ded0;
|
||||
--theme-bg-dark: #a8a68f;
|
||||
--theme-border: #d5d0bd;
|
||||
--theme-success: #a3b075;
|
||||
--theme-success-bg: #edeee5;
|
||||
--theme-toggle-off: #c0bda8;
|
||||
--theme-toggle-on: #c4ca8d;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: #626262;
|
||||
background: var(--theme-bg-dark);
|
||||
min-height: 100vh;
|
||||
color: #333;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
@@ -69,8 +171,8 @@ h1 {
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: #f0f0f0;
|
||||
border: 2px solid #ddd;
|
||||
background: var(--theme-bg-light);
|
||||
border: 2px solid var(--theme-border);
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
@@ -84,7 +186,7 @@ h1 {
|
||||
}
|
||||
|
||||
.night-mode-btn:hover {
|
||||
background: #e0e0e0;
|
||||
background: var(--theme-bg-medium);
|
||||
transform: translateY(-50%) scale(1.1);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
@@ -116,7 +218,7 @@ input[type="text"] {
|
||||
|
||||
input[type="text"]:focus {
|
||||
outline: none;
|
||||
border-color: #1b6d3e;
|
||||
border-color: var(--theme-primary-dark);
|
||||
}
|
||||
|
||||
.btn {
|
||||
@@ -130,23 +232,23 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #27b790;
|
||||
background: var(--theme-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #5eda93;
|
||||
background: var(--theme-primary-hover);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(126, 126, 126, 0.521);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: #e0e0e0;
|
||||
background: var(--theme-bg-medium);
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #d0d0d0;
|
||||
background: var(--theme-bg-medium);
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
@@ -160,11 +262,11 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.btn-primary:disabled:hover {
|
||||
background: #27b790 !important;
|
||||
background: var(--theme-primary) !important;
|
||||
}
|
||||
|
||||
.btn-secondary:disabled:hover {
|
||||
background: #e0e0e0 !important;
|
||||
background: var(--theme-bg-medium) !important;
|
||||
}
|
||||
|
||||
/* Create Room Section */
|
||||
@@ -198,10 +300,10 @@ input[type="text"]:focus {
|
||||
flex: 1;
|
||||
padding: 10px;
|
||||
background: white;
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid var(--theme-border);
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
color: #32a082;
|
||||
color: var(--theme-secondary);
|
||||
word-break: break-all;
|
||||
user-select: all;
|
||||
}
|
||||
@@ -211,16 +313,16 @@ input[type="text"]:focus {
|
||||
height: 44px;
|
||||
padding: 8px;
|
||||
font-size: 20px;
|
||||
background: #32a082;
|
||||
background: var(--theme-secondary);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-copy:hover, .btn-share:hover {
|
||||
background: #28866d;
|
||||
background: var(--theme-secondary-dark);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
@@ -251,7 +353,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.btn-bot {
|
||||
background: linear-gradient(135deg, #32a082 0%, #64859a 100%);
|
||||
background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-dark) 100%);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 24px;
|
||||
@@ -280,22 +382,22 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.room-card {
|
||||
background: #f8f9fa;
|
||||
background: var(--theme-bg-light);
|
||||
padding: 20px;
|
||||
border-radius: 15px;
|
||||
border: 2px solid #e0e0e0;
|
||||
border: 2px solid var(--theme-border);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.room-card:hover {
|
||||
border-color: #1b6d3e;
|
||||
border-color: var(--theme-primary-dark);
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 25px rgba(126, 126, 126, 0.2);
|
||||
}
|
||||
|
||||
.room-card h4 {
|
||||
color: #1b6d3e;
|
||||
color: var(--theme-primary-dark);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@@ -305,7 +407,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.room-card.room-full {
|
||||
background: #f0f0f0;
|
||||
background: var(--theme-bg-light);
|
||||
border-color: #ccc;
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
@@ -349,20 +451,20 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.player-card {
|
||||
background: #f8f9fa;
|
||||
background: var(--theme-bg-light);
|
||||
padding: 15px;
|
||||
border-radius: 10px;
|
||||
border: 2px solid #e0e0e0;
|
||||
border: 2px solid var(--theme-border);
|
||||
}
|
||||
|
||||
.player-card.ready {
|
||||
border-color: #4caf50;
|
||||
background: #e8f5e9;
|
||||
border-color: var(--theme-success);
|
||||
background: var(--theme-success-bg);
|
||||
}
|
||||
|
||||
.player-card.current {
|
||||
border-color: #1b6d3e;
|
||||
background: #e8f5e9;
|
||||
border-color: var(--theme-primary-dark);
|
||||
background: var(--theme-success-bg);
|
||||
box-shadow: 0 0 20px rgba(49, 145, 91, 0.3);
|
||||
}
|
||||
|
||||
@@ -376,7 +478,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.player-card.ready .status {
|
||||
color: #4caf50;
|
||||
color: var(--theme-success);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -448,7 +550,7 @@ input[type="text"]:focus {
|
||||
position: relative;
|
||||
width: 60px;
|
||||
height: 30px;
|
||||
background: #ccc;
|
||||
background: var(--theme-toggle-off);
|
||||
border-radius: 15px;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
@@ -467,7 +569,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.deck-size-toggle input[type="checkbox"]:checked + .toggle-slider {
|
||||
background: #31915b;
|
||||
background: var(--theme-toggle-on);
|
||||
}
|
||||
|
||||
.deck-size-toggle input[type="checkbox"]:checked + .toggle-slider::before {
|
||||
@@ -475,11 +577,11 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.deck-size-toggle input[type="checkbox"]:checked ~ .deck-label:last-child {
|
||||
color: #31915b;
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.deck-size-toggle input[type="checkbox"]:not(:checked) ~ .deck-label:first-child {
|
||||
color: #31915b;
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
/* Countdown Timer */
|
||||
@@ -492,7 +594,7 @@ input[type="text"]:focus {
|
||||
height: 150px;
|
||||
margin: 0 auto;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #32a082 0%, #64859a 100%);
|
||||
background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-dark) 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -505,7 +607,7 @@ input[type="text"]:focus {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #32a082 0%, #64859a 100%);
|
||||
background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-dark) 100%);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -527,7 +629,7 @@ input[type="text"]:focus {
|
||||
.countdown-text {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
color: #31915b;
|
||||
color: var(--theme-primary);
|
||||
margin-top: 20px;
|
||||
animation: fadeInOut 1s ease-in-out infinite;
|
||||
}
|
||||
@@ -557,7 +659,7 @@ input[type="text"]:focus {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: linear-gradient(135deg, #32a082 0%, #64859a 100%);
|
||||
background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-dark) 100%);
|
||||
}
|
||||
|
||||
.error-content {
|
||||
@@ -699,7 +801,7 @@ input[type="text"]:focus {
|
||||
background: rgba(49, 145, 91, 0.3);
|
||||
padding: 5px 8px;
|
||||
border-radius: 4px;
|
||||
border-left: 3px solid #31915b;
|
||||
border-left: 3px solid var(--theme-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -714,7 +816,7 @@ input[type="text"]:focus {
|
||||
/* Цвета для разных игроков */
|
||||
.log-entry.chat-color-1 {
|
||||
background: rgba(76, 175, 80, 0.2);
|
||||
border-left-color: #4caf50;
|
||||
border-left-color: var(--theme-success);
|
||||
}
|
||||
|
||||
.log-entry.chat-color-2 {
|
||||
@@ -771,8 +873,8 @@ input[type="text"]:focus {
|
||||
right: 20px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: #0c3d0ace;
|
||||
border: 2px solid #767676;
|
||||
background: var(--theme-bg-light);
|
||||
border: 2px solid var(--theme-border);
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -786,7 +888,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.settings-btn:hover {
|
||||
background: #ebebebd7;
|
||||
background: var(--theme-bg-medium);
|
||||
color: white;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
@@ -802,8 +904,8 @@ input[type="text"]:focus {
|
||||
right: 20px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: #0c3d0ace;
|
||||
border: 2px solid #767676;
|
||||
background: var(--theme-bg-light);
|
||||
border: 2px solid var(--theme-border);
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -817,7 +919,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.rules-btn:hover {
|
||||
background: #ebebebd7;
|
||||
background: var(--theme-bg-medium);
|
||||
color: white;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
@@ -833,8 +935,8 @@ input[type="text"]:focus {
|
||||
right: 20px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: #0c3d0ace;
|
||||
border: 2px solid #767676;
|
||||
background: var(--theme-bg-light);
|
||||
border: 2px solid var(--theme-border);
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -848,7 +950,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.chat-btn:hover {
|
||||
background: #ebebebd7;
|
||||
background: var(--theme-bg-medium);
|
||||
color: white;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
@@ -867,7 +969,6 @@ input[type="text"]:focus {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
background: linear-gradient(155deg, #205e36 0%, #0d3617 100%);
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
@@ -983,7 +1084,7 @@ input[type="text"]:focus {
|
||||
}
|
||||
|
||||
.opponent-area.current-turn .opponent-info {
|
||||
background: linear-gradient(135deg, #f5d742 0%, #e8c84d 100%);
|
||||
background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent-dark) 100%);
|
||||
color: #333;
|
||||
font-weight: 700;
|
||||
border: 2px solid #d4af37;
|
||||
@@ -1294,7 +1395,7 @@ border: 2px solid #ffd700;
|
||||
|
||||
/* Подсветка при ходе игрока */
|
||||
.player-info.current-turn {
|
||||
background: linear-gradient(135deg, #f5d742 0%, #e8c84d 100%);
|
||||
background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent-dark) 100%);
|
||||
border: 0px;
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -1379,13 +1480,13 @@ border: 2px solid #ffd700;
|
||||
}
|
||||
|
||||
.modal-content::-webkit-scrollbar-thumb {
|
||||
background: linear-gradient(135deg, #32a082 0%, #1b6d3e 100%);
|
||||
background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-primary-dark) 100%);
|
||||
border-radius: 10px;
|
||||
border: 2px solid white;
|
||||
}
|
||||
|
||||
.modal-content::-webkit-scrollbar-thumb:hover {
|
||||
background: linear-gradient(135deg, #1b6d3e 0%, #31915b 100%);
|
||||
background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
|
||||
}
|
||||
|
||||
.modal-content h2, .modal-content h3 {
|
||||
@@ -1440,15 +1541,14 @@ border: 2px solid #ffd700;
|
||||
}
|
||||
|
||||
.close-modal-btn {
|
||||
position: sticky;
|
||||
top: 10px;
|
||||
float: right;
|
||||
margin: 10px 10px 0 0;
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
background: #d7d7d7ce;
|
||||
border: 2px solid #767676;
|
||||
background: var(--theme-bg-medium);
|
||||
border: 2px solid var(--theme-border);
|
||||
color: #3c3c3c;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
@@ -1464,7 +1564,7 @@ border: 2px solid #ffd700;
|
||||
}
|
||||
|
||||
.close-modal-btn:hover {
|
||||
background: #ebebebd7;
|
||||
background: var(--theme-bg-light);
|
||||
color: #7d2c2c;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
@@ -1497,6 +1597,16 @@ border: 2px solid #ffd700;
|
||||
border-bottom: 1px solid rgba(118, 118, 118, 0.2);
|
||||
}
|
||||
|
||||
.setting-item:nth-last-child(2) {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid rgba(118, 118, 118, 0.2);
|
||||
align-content: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.setting-item:last-child {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
@@ -1604,8 +1714,8 @@ body .suit-emoji-log.spades {
|
||||
}
|
||||
|
||||
.suit-btn:hover {
|
||||
border-color: #767676;
|
||||
background: #f0f0f0;
|
||||
border-color: var(--theme-border);
|
||||
background: var(--theme-bg-light);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
@@ -1626,14 +1736,14 @@ body .suit-emoji-log.spades {
|
||||
.result-item {
|
||||
padding: 15px;
|
||||
margin: 10px 0;
|
||||
background: #f8f9fa;
|
||||
background: var(--theme-bg-light);
|
||||
border-radius: 10px;
|
||||
border-left: 4px solid #1b6d3e;
|
||||
border-left: 4px solid var(--theme-primary-dark);
|
||||
}
|
||||
|
||||
.result-item.winner {
|
||||
background: #e8f5e9;
|
||||
border-left-color: #4caf50;
|
||||
background: var(--theme-success-bg);
|
||||
border-left-color: var(--theme-success);
|
||||
}
|
||||
|
||||
.result-item h4 {
|
||||
@@ -2206,15 +2316,11 @@ body .suit-emoji-log.spades {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Flying card animation */
|
||||
/* Flying card animation - background управляется через data-card-back */
|
||||
.flying-card {
|
||||
position: fixed;
|
||||
width: 60px;
|
||||
height: 85px;
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.028) 6px, rgba(0, 0, 0, 0.037) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.028) 6px, rgba(0, 0, 0, 0.037) 7px),
|
||||
linear-gradient(135deg, #2a5f4f, #1b4037);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2452,51 +2558,58 @@ body .suit-emoji-log.spades {
|
||||
box-shadow: 0 3px 8px rgba(71, 71, 71, 0.3);
|
||||
}
|
||||
|
||||
/* 5 вариантов цветов рубашки */
|
||||
/* 5 вариантов цветов рубашки - светлые для дневного режима */
|
||||
.card-back-gray {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.028) 6px, rgba(0, 0, 0, 0.037) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.028) 6px, rgba(0, 0, 0, 0.037) 7px),
|
||||
linear-gradient(314deg, #646464, #9c9c9c);
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #686868, #9ca3af);
|
||||
filter: saturate(0.8) brightness(0.95);
|
||||
}
|
||||
|
||||
.card-back-green {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #13301f, #2d5a3f);
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #2a5a3f, #4a8a65);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
.card-back-blue {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #1e2d3f, #174880);
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #3a5a7f, #4a7ab0);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
.card-back-red {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1e1e, #6b1111);
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #6a3a3a, #9a4a4a);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
.card-back-purple {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1c61, #47345a);
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #6a4a8a, #8a6aaa);
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
}
|
||||
|
||||
/* Применение выбранного цвета рубашки */
|
||||
/* Применение выбранного цвета рубашки - светлые для дневного режима */
|
||||
body[data-card-back="gray"] .opponent-card,
|
||||
body[data-card-back="gray"] .deck,
|
||||
body[data-card-back="gray"] .card-back,
|
||||
body[data-card-back="gray"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.028) 6px, rgba(0, 0, 0, 0.037) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.028) 6px, rgba(0, 0, 0, 0.037) 7px),
|
||||
linear-gradient(314deg, #646464, #9c9c9c) !important;
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #686868, #9ca3af) !important;
|
||||
filter: saturate(0.8) brightness(0.95);
|
||||
border-color: #383838 !important;
|
||||
}
|
||||
|
||||
body[data-card-back="green"] .opponent-card,
|
||||
@@ -2504,9 +2617,11 @@ body[data-card-back="green"] .deck,
|
||||
body[data-card-back="green"] .card-back,
|
||||
body[data-card-back="green"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #13301f, #2d5a3f) !important;
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #2a5a3f, #4a8a65) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #153a1a !important;
|
||||
}
|
||||
|
||||
body[data-card-back="blue"] .opponent-card,
|
||||
@@ -2514,9 +2629,11 @@ body[data-card-back="blue"] .deck,
|
||||
body[data-card-back="blue"] .card-back,
|
||||
body[data-card-back="blue"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #1e2d3f, #174880) !important;
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #3a5a7f, #4a7ab0) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #153a5a !important;
|
||||
}
|
||||
|
||||
body[data-card-back="red"] .opponent-card,
|
||||
@@ -2524,9 +2641,11 @@ body[data-card-back="red"] .deck,
|
||||
body[data-card-back="red"] .card-back,
|
||||
body[data-card-back="red"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1e1e, #6b1111) !important;
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #6a3a3a, #9a4a4a) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #412020 !important;
|
||||
}
|
||||
|
||||
body[data-card-back="purple"] .opponent-card,
|
||||
@@ -2534,7 +2653,132 @@ body[data-card-back="purple"] .deck,
|
||||
body[data-card-back="purple"] .card-back,
|
||||
body[data-card-back="purple"] .flying-card {
|
||||
background:
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.15) 6px, rgba(0, 0, 0, 0.2) 7px),
|
||||
linear-gradient(314deg, #3d1c61, #47345a) !important;
|
||||
repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0, 0, 0, 0.1) 6px, rgba(0, 0, 0, 0.15) 7px),
|
||||
linear-gradient(314deg, #6a4a8a, #8a6aaa) !important;
|
||||
filter: saturate(0.7) brightness(1.1);
|
||||
border-color: #38234b !important;
|
||||
}
|
||||
|
||||
/* Background selector */
|
||||
.background-selector {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.background-option {
|
||||
cursor: pointer;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 8px;
|
||||
padding: 3px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.background-option:hover {
|
||||
border-color: #4CAF50;
|
||||
}
|
||||
|
||||
.background-option.selected {
|
||||
border-color: #4CAF50;
|
||||
box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
|
||||
}
|
||||
|
||||
.background-preview {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* 5 вариантов фонов для дневного режима - пастельные мягкие цвета */
|
||||
.bg-default {
|
||||
background: linear-gradient(169deg, #36724b 0%, #1d4627 90%);
|
||||
}
|
||||
|
||||
.bg-green {
|
||||
background: linear-gradient(155deg, #4a7c8f 0%, #2d5266 100%);
|
||||
}
|
||||
|
||||
.bg-blue {
|
||||
background: linear-gradient(230deg, #76564d 10%, #523c26 90%);
|
||||
}
|
||||
|
||||
.bg-purple {
|
||||
background: linear-gradient(219deg, #826994 10%, #503d6c 90%);
|
||||
}
|
||||
|
||||
.bg-orange {
|
||||
background: linear-gradient(206deg, #8f9861 10%, #847068 90%);
|
||||
}
|
||||
|
||||
/* Применение выбранного фона для дневного режима */
|
||||
body[data-background="default"] .game-table,
|
||||
body:not([data-background]) .game-table {
|
||||
background: linear-gradient(169deg, #36724b 0%, #1d4627 90%);
|
||||
}
|
||||
|
||||
body[data-background="default"] .game-circle,
|
||||
body:not([data-background]) .game-circle {
|
||||
background: radial-gradient(circle, #4a7a2a 0%, #2d5016 100%);
|
||||
border-color: #b89020;
|
||||
}
|
||||
|
||||
body[data-background="green"] .game-table {
|
||||
background: linear-gradient(155deg, #4a7c8f 0%, #2d5266 100%);
|
||||
}
|
||||
|
||||
body[data-background="green"] .game-circle {
|
||||
background: radial-gradient(circle, #5a8fa3 0%, #3d6a7a 100%);
|
||||
border-color: #7db3c7;
|
||||
}
|
||||
|
||||
body[data-background="blue"] .game-table {
|
||||
background: linear-gradient(230deg, #76564d 10%, #523c26 90%);
|
||||
}
|
||||
|
||||
body[data-background="blue"] .game-circle {
|
||||
background: radial-gradient(circle, #8b6b4d 0%, #5d4539 100%);
|
||||
border-color: #a8856a;
|
||||
}
|
||||
|
||||
body[data-background="purple"] .game-table {
|
||||
background: linear-gradient(219deg, #826994 10%, #503d6c 90%);
|
||||
}
|
||||
|
||||
body[data-background="purple"] .game-circle {
|
||||
background: radial-gradient(circle, #9d7bb3 0%, #6d5580 100%);
|
||||
border-color: #b899d0;
|
||||
}
|
||||
|
||||
body[data-background="orange"] .game-table {
|
||||
background: linear-gradient(206deg, #8f9861 10%, #847068 90%);
|
||||
}
|
||||
|
||||
body[data-background="orange"] .game-circle {
|
||||
background: radial-gradient(circle, #a3b075 0%, #7a8254 100%);
|
||||
border-color: #bfcc8d;
|
||||
}
|
||||
|
||||
/* Рамка карт под каждый фон для дневного режима */
|
||||
body[data-background="default"] .card,
|
||||
body:not([data-background]) .card {
|
||||
border-color: #2d5016;
|
||||
}
|
||||
|
||||
body[data-background="green"] .card {
|
||||
border-color: #2d5266;
|
||||
}
|
||||
|
||||
body[data-background="blue"] .card {
|
||||
border-color: #523c26;
|
||||
}
|
||||
|
||||
body[data-background="purple"] .card {
|
||||
border-color: #503d6c;
|
||||
}
|
||||
|
||||
body[data-background="orange"] .card {
|
||||
border-color: #6a5d54;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user