-
-
-
-*/
+/* Глобальные стили для кнопок переключения панелей (скрыты по умолчанию) */
.panel-switcher-controls {
- display: none; /* По умолчанию скрыты, будут показаны в медиа-запросе */
+ display: none; /* Скрыт по умолчанию для десктопа */
flex-shrink: 0;
padding: 8px 5px;
background: var(--panel-switcher-bg);
border-bottom: 1px solid var(--panel-switcher-border);
- gap: 10px; /* Пространство между кнопками */
+ gap: 10px;
}
-
.panel-switch-button {
- flex: 1; /* Кнопки занимают равное пространство */
+ flex: 1;
padding: 8px 10px;
font-size: 0.9em;
font-weight: bold;
@@ -511,1017 +294,366 @@ label[for="char-almagest"] i {
align-items: center;
justify-content: center;
}
-
-.panel-switch-button i {
- margin-right: 8px;
-}
-
-.panel-switch-button:hover {
- filter: brightness(1.1);
-}
-
+.panel-switch-button i { margin-right: 8px; }
+.panel-switch-button:hover { filter: brightness(1.1); }
.panel-switch-button.active {
background: var(--panel-switcher-button-active-bg);
color: var(--panel-switcher-button-active-text);
box-shadow: 0 0 8px rgba(255,255,255,0.3);
}
-/* На очень маленьких экранах текст кнопки можно скрыть, оставив только иконку */
-.panel-switch-button .button-text {
- /* display: inline; /* По умолчанию текст виден */
-}
-
.battle-arena-container {
- flex-grow: 1; /* Занимает основное пространство */
- display: flex;
- gap: 10px;
- overflow: hidden; /* Предотвращает выпадение контента */
- position: relative; /* Для абсолютного позиционирования дочерних колонок на мобильных */
+ flex-grow: 1;
+ display: flex; /* На десктопе панели рядом */
+ gap: 10px; /* Отступ между панелями на десктопе */
+ overflow: hidden; /* Обрезает контент, если он выходит за пределы */
+ position: relative; /* Для мобильного вида, где панели будут накладываться */
min-height: 0; /* Для корректной работы flex-grow */
}
.player-column,
.opponent-column {
- flex: 1;
+ flex: 1; /* Равное распределение ширины на десктопе */
display: flex;
flex-direction: column;
gap: 10px;
- min-width: 0; /* Для корректной работы flex с overflow */
- overflow: hidden; /* Если контент внутри колонок может быть больше */
- /* На десктопе каждая колонка прокручивается независимо, если нужно */
- /* overflow-y: auto; - Это будет добавлено для мобильной версии, где высота фиксирована */
+ min-width: 0;
+ overflow: hidden; /* Обрезает внутренний контент, если он слишком большой */
}
-/* --- Стили Панелей Персонажей, Управления, Лога --- */
-.fighter-panel,
-.controls-panel-new,
-.battle-log-new {
- background: var(--panel-bg);
- border: 1px solid var(--panel-border);
- border-radius: 8px;
+/* ... (все остальные стили панелей, кнопок, лога и т.д. до медиа-запросов остаются как были) ... */
+.fighter-panel, .controls-panel-new, .battle-log-new {
+ background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.3);
- padding: 15px;
- display: flex;
- flex-direction: column;
- overflow: hidden; /* Контент внутри панелей не должен выходить за их пределы */
+ padding: 15px; display: flex; flex-direction: column; overflow: hidden;
transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease-out, transform 0.3s ease-out;
}
-
-/* Стили рамок панелей в зависимости от персонажа (для JS) */
-.fighter-panel.panel-elena {
- border-color: var(--accent-player);
-}
-.fighter-panel.panel-almagest {
- border-color: var(--accent-almagest);
-}
-.fighter-panel.panel-balard {
- border-color: var(--accent-opponent);
-}
-
-
-/* --- Панели Персонажей --- */
+.fighter-panel.panel-elena { border-color: var(--accent-player); }
+.fighter-panel.panel-almagest { border-color: var(--accent-almagest); }
+.fighter-panel.panel-balard { border-color: var(--accent-opponent); }
.panel-header {
- flex-shrink: 0;
- display: flex;
- align-items: center;
- gap: 10px;
- padding-bottom: 10px;
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- margin-bottom: 0; /* Убираем лишний отступ, если panel-content имеет свой margin-top */
+ flex-shrink: 0; display: flex; align-items: center; gap: 10px;
+ padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 0;
}
-
-.fighter-name {
- font-size: 1.6em;
- margin: 0;
- flex-grow: 1;
- text-align: left;
-}
-
-/* Цвета иконок в имени персонажа */
-.fighter-name .icon-player { /* Общая иконка для слота игрока (может быть Елена или Альмагест) */
- /* Цвет будет установлен специфичным классом .icon-elena или .icon-almagest */
-}
-.fighter-name .icon-opponent { /* Общая иконка для слота оппонента (может быть Балард, Елена или Альмагест) */
- /* Цвет будет установлен специфичным классом */
-}
-/* Специфичные иконки */
+.fighter-name { font-size: 1.6em; margin: 0; flex-grow: 1; text-align: left; }
.fighter-name .icon-elena { color: var(--accent-player); }
.fighter-name .icon-almagest { color: var(--accent-almagest); }
.fighter-name .icon-balard { color: var(--accent-opponent); }
-
-
-.character-visual {
- flex-shrink: 0;
- margin-bottom: 0;
-}
-
+.character-visual { flex-shrink: 0; margin-bottom: 0; }
.avatar-image {
- display: block;
- max-width: 50px; /* Фиксируем или делаем адаптивным */
- height: auto; /* Для сохранения пропорций */
- border-radius: 50%;
- border: 2px solid var(--panel-border); /* Цвет рамки будет изменен JS или специфичным классом */
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
+ display: block; max-width: 50px; height: auto; border-radius: 50%;
+ border: 2px solid var(--panel-border); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
-
-/* Стили рамок аватаров (для JS) */
.avatar-image.avatar-elena { border-color: var(--accent-player); }
.avatar-image.avatar-almagest { border-color: var(--accent-almagest); }
.avatar-image.avatar-balard { border-color: var(--accent-opponent); }
-
-
.panel-content {
- flex-grow: 1;
- overflow-y: auto; /* Позволяет прокручивать контент, если он не помещается */
- padding-right: 5px; /* Для отступа от скроллбара */
- display: flex;
- flex-direction: column;
- gap: 10px;
- min-height: 0; /* Для корректной работы flex с overflow */
- padding-top: 10px; /* Отступ от panel-header */
- margin-top: 0; /* Убрали margin-bottom у panel-header, добавили padding-top сюда */
+ flex-grow: 1; overflow-y: auto; padding-right: 5px; display: flex;
+ flex-direction: column; gap: 10px; min-height: 0; padding-top: 10px; margin-top: 0;
}
-
-.stat-bar-container {
- display: flex;
- align-items: center;
- gap: 10px;
- flex-shrink: 0;
-}
-
-.stat-bar-container .bar-icon {
- flex-shrink: 0;
- font-size: 1.4em;
-}
-
-/* Цвета иконок ресурсов (для JS) */
+.stat-bar-container { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
+.stat-bar-container .bar-icon { flex-shrink: 0; font-size: 1.4em; }
.stat-bar-container.health .bar-icon { color: var(--hp-color); }
.stat-bar-container.mana .bar-icon { color: var(--mana-color); }
.stat-bar-container.stamina .bar-icon { color: var(--stamina-color); }
.stat-bar-container.dark-energy .bar-icon { color: var(--dark-energy-color); }
-
-
-.bar-wrapper {
- flex-grow: 1;
-}
-
+.bar-wrapper { flex-grow: 1; }
.bar {
- border-radius: 4px;
- height: 20px;
- border: 1px solid rgba(0, 0, 0, 0.5);
- overflow: hidden;
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
- position: relative;
- background-color: var(--bar-bg);
+ border-radius: 4px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.5); overflow: hidden;
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); position: relative; background-color: var(--bar-bg);
}
-
.bar-fill {
- display: block;
- height: 100%;
- border-radius: 3px; /* чуть меньше, чем у родителя */
- position: relative;
- z-index: 2;
- transition: width 0.4s ease-out;
+ display: block; height: 100%; border-radius: 3px; position: relative;
+ z-index: 2; transition: width 0.4s ease-out;
}
-
.bar-text {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- z-index: 3;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 0.75em;
- font-weight: bold;
- color: #fff;
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9);
- padding: 0 5px;
- white-space: nowrap;
- pointer-events: none; /* Чтобы текст не мешал кликам, если они есть */
+ position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3;
+ display: flex; justify-content: center; align-items: center; font-size: 0.75em; font-weight: bold;
+ color: #fff; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.9); padding: 0 5px; white-space: nowrap; pointer-events: none;
}
-
-/* Цвета Заливки Баров */
.health .bar-fill { background-color: var(--hp-color); }
.mana .bar-fill { background-color: var(--mana-color); }
.stamina .bar-fill { background-color: var(--stamina-color); }
.dark-energy .bar-fill { background-color: var(--dark-energy-color); }
-
-
-/* Статус и Эффекты */
-.status-area {
- font-size: 0.9em;
- display: flex;
- align-items: baseline;
- gap: 5px;
- flex-shrink: 0;
- min-height: 1.5em; /* Чтобы не прыгал layout */
-}
-
-.status-area .icon-status {
- font-size: 1em;
- flex-shrink: 0;
- margin-top: 0.1em; /* Подгонка выравнивания */
-}
-
-.status-area strong {
- color: var(--text-muted);
- font-weight: normal;
- flex-shrink: 0;
- margin-right: 3px;
-}
-
-.status-area span {
- font-weight: bold;
-}
-
-.status-area span.blocking {
- color: var(--block-color);
- font-style: italic;
-}
-
-.effects-area {
- font-size: 0.9em;
- display: flex;
- flex-direction: column;
- gap: 8px;
- flex-shrink: 0;
- min-height: 3em; /* Резервируем место */
-}
-
-.effect-category {
- display: flex;
- align-items: baseline;
- gap: 5px;
-}
-
+.status-area { font-size: 0.9em; display: flex; align-items: baseline; gap: 5px; flex-shrink: 0; min-height: 1.5em; }
+.status-area .icon-status { font-size: 1em; flex-shrink: 0; margin-top: 0.1em; }
+.status-area strong { color: var(--text-muted); font-weight: normal; flex-shrink: 0; margin-right: 3px; }
+.status-area span { font-weight: bold; }
+.status-area span.blocking { color: var(--block-color); font-style: italic; }
+.effects-area { font-size: 0.9em; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; min-height: 3em; }
+.effect-category { display: flex; align-items: baseline; gap: 5px; }
.effect-category strong {
- color: var(--text-muted);
- font-weight: normal;
- font-family: var(--font-main); /* Убедимся, что шрифт основной */
- font-size: 0.9em;
- flex-shrink: 0;
- margin-right: 3px;
+ color: var(--text-muted); font-weight: normal; font-family: var(--font-main);
+ font-size: 0.9em; flex-shrink: 0; margin-right: 3px;
}
-
-.effect-category .icon-effects-buff,
-.effect-category .icon-effects-debuff {
- font-size: 1em;
- flex-shrink: 0;
- margin-top: 0.1em; /* Подгонка выравнивания */
- width: 1.2em;
- text-align: center; /* Для иконок */
+.effect-category .icon-effects-buff, .effect-category .icon-effects-debuff {
+ font-size: 1em; flex-shrink: 0; margin-top: 0.1em; width: 1.2em; text-align: center;
}
-
.effect-category .icon-effects-buff { color: var(--heal-color); }
.effect-category .icon-effects-debuff { color: var(--damage-color); }
-
-.effect-list {
- display: inline;
- line-height: 1.4;
- min-width: 0; /* Для переноса, если нужно */
- font-weight: bold;
-}
-
+.effect-list { display: inline; line-height: 1.4; min-width: 0; font-weight: bold; }
.effect {
- display: inline-block;
- margin: 2px 3px 2px 0;
- padding: 1px 6px;
- font-size: 0.8em;
- border-radius: 10px;
- border: 1px solid;
- cursor: default;
- font-weight: 600;
- background-color: rgba(0, 0, 0, 0.2);
- white-space: nowrap;
- vertical-align: baseline;
+ display: inline-block; margin: 2px 3px 2px 0; padding: 1px 6px; font-size: 0.8em;
+ border-radius: 10px; border: 1px solid; cursor: default; font-weight: 600;
+ background-color: rgba(0, 0, 0, 0.2); white-space: nowrap; vertical-align: baseline;
}
-
-/* Цвета рамок и текста для разных типов эффектов */
.effect-buff { border-color: var(--heal-color); color: var(--heal-color); }
.effect-debuff { border-color: var(--damage-color); color: var(--damage-color); }
-.effect-stun { border-color: var(--turn-color); color: var(--turn-color); } /* Для безмолвия/стана */
-.effect-block { border-color: var(--block-color); color: var(--block-color); } /* Для эффектов блока */
+.effect-stun { border-color: var(--turn-color); color: var(--turn-color); }
+.effect-block { border-color: var(--block-color); color: var(--block-color); }
.effect-info { border-color: var(--text-muted); color: var(--text-muted); }
-
-
-/* --- Панель Управления --- */
-.controls-panel-new {
- /* На десктопе растет, на мобильных высота авто */
- flex-grow: 1; /* По умолчанию (для десктопа, если нужно заполнить колонку) */
- min-height: 0; /* Для корректного flex-grow */
- display: flex;
- flex-direction: column;
-}
-
+.controls-panel-new { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; }
#turn-indicator {
- flex-shrink: 0;
- text-align: center;
- font-size: 1.4em;
- margin-bottom: 10px; /* Базовый отступ */
- padding-bottom: 8px;
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- transition: color 0.3s ease;
+ flex-shrink: 0; text-align: center; font-size: 1.4em; margin-bottom: 10px;
+ padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: color 0.3s ease;
}
-
-/* === Стили для таймера хода === */
.turn-timer-display {
- flex-shrink: 0;
- text-align: center;
- font-size: 0.9em;
- color: var(--timer-text-color);
- margin-top: -5px; /* Небольшой отрицательный отступ, чтобы быть ближе к индикатору хода */
- margin-bottom: 10px; /* Отступ снизу перед кнопками */
- padding: 5px;
- background-color: rgba(0,0,0,0.15);
- border-radius: 4px;
- border-top: 1px solid rgba(255,255,255,0.05);
+ flex-shrink: 0; text-align: center; font-size: 0.9em; color: var(--timer-text-color);
+ margin-top: -5px; margin-bottom: 10px; padding: 5px; background-color: rgba(0,0,0,0.15);
+ border-radius: 4px; border-top: 1px solid rgba(255,255,255,0.05);
}
-
-.turn-timer-display i {
- color: var(--timer-icon-color);
- margin-right: 8px;
-}
-
-#turn-timer { /* Сам текст таймера */
- font-weight: bold;
- font-size: 1.1em;
- min-width: 35px; /* Чтобы не прыгал layout при смене 0:0X на -- */
- display: inline-block;
- text-align: left;
-}
-
-#turn-timer.low-time { /* Класс для стилизации, когда времени мало */
- color: var(--timer-low-time-color);
- animation: pulse-timer-warning 1s infinite ease-in-out;
-}
-
-
-.controls-layout {
- flex-grow: 1;
- display: flex;
- flex-direction: column;
- gap: 10px;
- overflow: hidden;
- min-height: 0;
-}
-
-.control-group {
- flex-shrink: 0;
-}
-
+.turn-timer-display i { color: var(--timer-icon-color); margin-right: 8px; }
+#turn-timer { font-weight: bold; font-size: 1.1em; min-width: 35px; display: inline-block; text-align: left; }
+#turn-timer.low-time { color: var(--timer-low-time-color); animation: pulse-timer-warning 1s infinite ease-in-out; }
+.controls-layout { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-height: 0; }
+.control-group { flex-shrink: 0; }
.control-group h4 {
- font-size: 0.9em;
- color: var(--text-muted);
- margin-bottom: 5px;
- padding-bottom: 5px;
- border-bottom: 1px dashed var(--panel-border);
- text-transform: uppercase;
- letter-spacing: 1px;
+ font-size: 0.9em; color: var(--text-muted); margin-bottom: 5px; padding-bottom: 5px;
+ border-bottom: 1px dashed var(--panel-border); text-transform: uppercase; letter-spacing: 1px;
}
-
-.basic-actions {
- display: flex;
- gap: 10px;
-}
-
+.basic-actions { display: flex; gap: 10px; }
.action-button.basic {
- flex: 1;
- padding: 8px 5px;
- font-size: 0.85em;
- font-weight: bold;
- background: var(--button-bg);
- color: var(--button-text);
- border: 1px solid rgba(0, 0, 0, 0.3);
- border-radius: 5px;
- cursor: pointer;
- transition: all 0.15s ease;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
- outline: none;
+ flex: 1; padding: 8px 5px; font-size: 0.85em; font-weight: bold; background: var(--button-bg);
+ color: var(--button-text); border: 1px solid rgba(0, 0, 0, 0.3); border-radius: 5px;
+ cursor: pointer; transition: all 0.15s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); outline: none;
}
-
-.action-button.basic:hover:enabled {
- background: var(--button-hover-bg);
- transform: translateY(-1px);
- box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
-}
-
-.action-button.basic:active:enabled {
- transform: translateY(0px);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
-}
-
-/* Стиль для бафнутой атаки */
+.action-button.basic:hover:enabled { background: var(--button-hover-bg); transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); }
+.action-button.basic:active:enabled { transform: translateY(0px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
#button-attack.attack-buffed:enabled {
border: 2px solid var(--heal-color);
box-shadow: 0 0 10px 2px rgba(144, 238, 144, 0.6), 0 3px 6px rgba(0, 0, 0, 0.5);
- background: linear-gradient(145deg, #70c070, #5a9a5a); /* Зеленый градиент */
- transform: translateY(-1px); /* Небольшой подъем */
+ background: linear-gradient(145deg, #70c070, #5a9a5a); transform: translateY(-1px);
}
-
-
-.ability-list {
- flex-grow: 1;
- display: flex;
- flex-direction: column;
- min-height: 0;
- overflow: hidden;
-}
-
-.ability-list h4 {
- flex-shrink: 0;
-}
-
+.ability-list { flex-grow: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
+.ability-list h4 { flex-shrink: 0; }
.abilities-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
- gap: 8px;
- padding: 8px;
- background-color: rgba(0, 0, 0, 0.2);
- border-radius: 4px;
- overflow-y: auto;
- border: 1px solid rgba(0, 0, 0, 0.3);
- flex-grow: 1;
- position: relative; /* Для псевдоэлемента, если нужен */
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(75px, 1fr)); gap: 8px; padding: 8px;
+ background-color: rgba(0, 0, 0, 0.2); border-radius: 4px; overflow-y: auto;
+ border: 1px solid rgba(0, 0, 0, 0.3); flex-grow: 1; position: relative;
}
-
-.abilities-grid::after {
- content: '';
- display: block;
- height: 10px;
- width: 100%;
-}
-
-/* Отступ снизу для скролла */
+.abilities-grid::after { content: ''; display: block; height: 10px; width: 100%; }
.abilities-grid .placeholder-text {
- grid-column: 1 / -1;
- text-align: center;
- color: var(--text-muted);
- align-self: center;
- font-size: 0.9em;
- padding: 15px 0;
+ grid-column: 1 / -1; text-align: center; color: var(--text-muted);
+ align-self: center; font-size: 0.9em; padding: 15px 0;
}
-
.ability-button {
- aspect-ratio: 1 / 1;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding: 5px;
- border-radius: 6px;
- background: var(--button-ability-bg);
- border: 1px solid var(--button-ability-border);
- color: #fff;
- text-align: center;
- line-height: 1.15;
- cursor: pointer;
- transition: all 0.2s ease-out;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
- position: relative;
- overflow: hidden;
- outline: none;
+ aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
+ padding: 5px; border-radius: 6px; background: var(--button-ability-bg); border: 1px solid var(--button-ability-border);
+ color: #fff; text-align: center; line-height: 1.15; cursor: pointer; transition: all 0.2s ease-out;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
+ position: relative; overflow: hidden; outline: none;
}
-
-.ability-button .ability-name {
- font-size: 0.75em;
- font-weight: bold;
- margin-bottom: 2px;
- display: block;
- width: 95%;
-}
-
+.ability-button .ability-name { font-size: 0.75em; font-weight: bold; margin-bottom: 2px; display: block; width: 95%; }
.ability-button .ability-desc {
- font-size: 0.65em;
- font-weight: normal;
- color: #aaccce;
- opacity: 0.8;
- text-shadow: none;
- max-height: 2em;
- overflow: hidden;
- width: 95%;
- display: block;
- margin-top: auto; /* Прижимает описание вниз */
+ font-size: 0.65em; font-weight: normal; color: #aaccce; opacity: 0.8; text-shadow: none;
+ max-height: 2em; overflow: hidden; width: 95%; display: block; margin-top: auto;
}
-
.ability-button:hover:enabled {
- transform: scale(1.03) translateY(-1px);
- background: var(--button-ability-hover-bg);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 8px rgba(77, 176, 181, 0.4);
- border-color: #77d9dd;
+ transform: scale(1.03) translateY(-1px); background: var(--button-ability-hover-bg);
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 8px rgba(77, 176, 181, 0.4); border-color: #77d9dd;
}
-
.ability-button:active:enabled {
transform: scale(1) translateY(0);
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3);
- filter: brightness(0.9);
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3); filter: brightness(0.9);
}
-
-/* --- Стили для отключенных кнопок и их состояний --- */
-
-/* Базовый стиль для любой отключенной кнопки */
-.ability-button:disabled,
-.action-button.basic:disabled {
- background: var(--button-disabled-bg) !important;
- border-color: transparent !important;
- color: var(--button-disabled-text) !important;
- cursor: not-allowed !important;
- transform: none !important;
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
- opacity: 0.7;
- text-shadow: none !important;
- filter: grayscale(50%);
+.ability-button:disabled, .action-button.basic:disabled {
+ background: var(--button-disabled-bg) !important; border-color: transparent !important;
+ color: var(--button-disabled-text) !important; cursor: not-allowed !important; transform: none !important;
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important; opacity: 0.7; text-shadow: none !important; filter: grayscale(50%);
}
-
-/* Стиль для индикации нехватки ресурса (красная пунктирная рамка) */
-/* Применяется, когда кнопка имеет класс 'not-enough-resource', независимо от disabled */
-.ability-button.not-enough-resource {
- border: 2px dashed var(--damage-color); /* Красная пунктирная рамка */
- animation: pulse-red-border 1s infinite ease-in-out; /* Пульсация */
-}
-
-/* Сочетание стиля нехватки ресурса и стандартного стиля disabled */
-/* Сохраняет красную рамку поверх стандартного серого фона disabled */
+.ability-button.not-enough-resource { border: 2px dashed var(--damage-color); animation: pulse-red-border 1s infinite ease-in-out; }
.ability-button.not-enough-resource:disabled {
- border-color: var(--damage-color); /* Гарантируем красную рамку */
- /* Можно переопределить тень, если нужно специфичное сочетание */
+ border-color: var(--damage-color);
box-shadow: inset 0 0 8px rgba(255, 80, 80, 0.2), 0 3px 6px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.4);
- /* Опасити и фон наследуются от общего :disabled */
- /* Анимация наследуется от .not-enough-resource */
}
-
-/* Стиль для активного баффа (если кнопка баффа уже активна) */
-/* Применяется, когда кнопка имеет класс 'buff-is-active', независимо от disabled */
-.ability-button.buff-is-active {
- /* Например, зеленая рамка или свечение */
- border: 2px solid var(--heal-color);
- box-shadow: 0 0 8px rgba(144, 238, 144, 0.5);
-}
-
-/* Сочетание активного баффа и стандартного стиля disabled */
-.ability-button.buff-is-active:disabled {
- border-color: var(--heal-color);
- /* Опасити, фон, фильтр наследуются от :disabled */
-}
-
-
-/* Стиль для кнопок на КД или под безмолвием */
-.ability-button.is-on-cooldown,
-.ability-button.is-silenced {
- filter: grayscale(70%) brightness(0.8); /* Затемнение и обесцвечивание */
-}
-
-/* Сочетание КД/безмолвия и стандартного стиля disabled */
-.ability-button.is-on-cooldown:disabled,
-.ability-button.is-silenced:disabled {
- /* Убеждаемся, что фильтр остается */
- filter: grayscale(70%) brightness(0.7); /* Чуть темнее в disabled состоянии */
- /* Опасити и фон наследуются от :disabled */
-}
-
-
-/* Скрываем описание иконки на КД/безмолвии, чтобы освободить место для таймера/иконки */
-.ability-button.is-on-cooldown .ability-name,
-.ability-button.is-silenced .ability-name,
-.ability-button.is-on-cooldown .ability-desc,
-.ability-button.is-silenced .ability-desc {
- opacity: 0.6; /* Приглушаем текст */
-}
-
-.ability-button.is-on-cooldown .ability-desc,
-.ability-button.is-silenced .ability-desc {
- display: none;
-}
-
-/* Стили для отображения кулдауна или безмолвия */
+.ability-button.buff-is-active { border: 2px solid var(--heal-color); box-shadow: 0 0 8px rgba(144, 238, 144, 0.5); }
+.ability-button.buff-is-active:disabled { border-color: var(--heal-color); }
+.ability-button.is-on-cooldown, .ability-button.is-silenced { filter: grayscale(70%) brightness(0.8); }
+.ability-button.is-on-cooldown:disabled, .ability-button.is-silenced:disabled { filter: grayscale(70%) brightness(0.7); }
+.ability-button.is-on-cooldown .ability-name, .ability-button.is-silenced .ability-name,
+.ability-button.is-on-cooldown .ability-desc, .ability-button.is-silenced .ability-desc { opacity: 0.6; }
+.ability-button.is-on-cooldown .ability-desc, .ability-button.is-silenced .ability-desc { display: none; }
.ability-cooldown-display {
- position: absolute;
- bottom: 5px;
- left: 0;
- width: 100%;
- text-align: center;
- font-size: 0.75em;
- font-weight: bold;
- color: var(--turn-color);
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
- pointer-events: none; /* Чтобы текст не мешал кликам */
- display: none; /* Изначально скрыт */
- line-height: 1;
+ position: absolute; bottom: 5px; left: 0; width: 100%; text-align: center; font-size: 0.75em;
+ font-weight: bold; color: var(--turn-color); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
+ pointer-events: none; display: none; line-height: 1;
}
-
-/* Показываем отображение кулдауна/безмолвия только когда кнопка в соответствующем состоянии */
.ability-button.is-on-cooldown .ability-cooldown-display,
-.ability-button.is-silenced .ability-cooldown-display {
- display: block !important; /* !important для переопределения display:none */
-}
-
-
-/* --- Панель Лога --- */
+.ability-button.is-silenced .ability-cooldown-display { display: block !important; }
.battle-log-new {
- height: var(--log-panel-fixed-height); /* На десктопе высота фиксирована */
- flex-shrink: 0; /* На десктопе не сжимается */
- display: flex;
- flex-direction: column;
- overflow: hidden;
+ height: var(--log-panel-fixed-height); flex-shrink: 0;
+ display: flex; flex-direction: column; overflow: hidden;
}
-
.battle-log-new h3 {
- flex-shrink: 0;
- font-size: 1.4em;
- margin-bottom: 10px;
- text-align: center;
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- padding-bottom: 8px;
+ flex-shrink: 0; font-size: 1.4em; margin-bottom: 10px; text-align: center;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 8px;
}
-
#log-list {
- list-style: none;
- flex-grow: 1;
- overflow-y: auto;
- background-color: var(--log-bg);
- border: 1px solid var(--log-border);
- font-size: 0.85em;
- border-radius: 6px;
- color: var(--log-text);
- padding: 10px;
- min-height: 0; /* Для корректной работы flex-grow и overflow */
- word-wrap: break-word; /* Перенос длинных слов */
+ list-style: none; flex-grow: 1; overflow-y: auto; background-color: var(--log-bg);
+ border: 1px solid var(--log-border); font-size: 0.85em; border-radius: 6px;
+ color: var(--log-text); padding: 10px; min-height: 0; word-wrap: break-word;
}
-
#log-list li {
- padding: 4px 8px;
- border-bottom: 1px solid rgba(74, 80, 114, 0.5); /* Полупрозрачная граница */
- line-height: 1.35;
- transition: background-color 0.3s;
+ padding: 4px 8px; border-bottom: 1px solid rgba(74, 80, 114, 0.5);
+ line-height: 1.35; transition: background-color 0.3s;
}
-
-#log-list li:last-child {
- border-bottom: none;
-}
-
-#log-list li:hover {
- background-color: rgba(255, 255, 255, 0.03); /* Легкая подсветка при наведении */
-}
-
-/* Стили для типов логов (классы добавляются JS) */
+#log-list li:last-child { border-bottom: none; }
+#log-list li:hover { background-color: rgba(255, 255, 255, 0.03); }
.log-damage { color: var(--damage-color); font-weight: 500; }
.log-heal { color: var(--heal-color); font-weight: 500; }
.log-block { color: var(--block-color); font-style: italic; }
-.log-info { color: #b0c4de; } /* Светло-голубой для общей информации */
+.log-info { color: #b0c4de; }
.log-turn {
- font-weight: bold;
- color: var(--turn-color);
- margin-top: 6px;
- border-top: 1px solid rgba(255, 215, 0, 0.3);
- padding-top: 6px;
- font-size: 1.05em;
- display: block; /* Чтобы занимал всю строку */
+ font-weight: bold; color: var(--turn-color); margin-top: 6px;
+ border-top: 1px solid rgba(255, 215, 0, 0.3); padding-top: 6px; font-size: 1.05em; display: block;
}
-.log-system {
- font-weight: bold;
- color: var(--system-color);
- font-style: italic;
- opacity: 0.8;
-}
-.log-effect {
- font-style: italic;
- color: var(--effect-color);
-}
-
-
-/* --- Экран Конца Игры (Модальное Окно) --- */
+.log-system { font-weight: bold; color: var(--system-color); font-style: italic; opacity: 0.8; }
+.log-effect { font-style: italic; color: var(--effect-color); }
.modal {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: var(--modal-bg);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1000;
- backdrop-filter: blur(4px) brightness(0.7);
- opacity: 0;
- pointer-events: none;
- transition: opacity 0.4s ease-out;
+ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-bg);
+ display: flex; justify-content: center; align-items: center; z-index: 1000;
+ backdrop-filter: blur(4px) brightness(0.7); opacity: 0; pointer-events: none; transition: opacity 0.4s ease-out;
}
-
-/* Класс для скрытия модалки (добавляется JS) */
-.modal.hidden {
- display: none !important;
-}
-
-/* Состояние видимости модалки */
-.modal:not(.hidden) {
- opacity: 1;
- pointer-events: auto;
-}
-
+.modal.hidden { display: none !important; }
+.modal:not(.hidden) { opacity: 1; pointer-events: auto; }
.modal-content {
- background: var(--modal-content-bg);
- padding: 40px 50px;
- border-radius: 10px;
- text-align: center;
- border: 1px solid var(--panel-border);
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
- color: var(--text-light);
- /* Начальное состояние для анимации появления */
- transform: scale(0.8) translateY(30px);
- opacity: 0;
- /* Анимация появления контента */
+ background: var(--modal-content-bg); padding: 40px 50px; border-radius: 10px; text-align: center;
+ border: 1px solid var(--panel-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); color: var(--text-light);
+ transform: scale(0.8) translateY(30px); opacity: 0;
transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.4s ease-out;
}
-
-/* Конечное состояние для анимации появления контента модалки */
-.modal:not(.hidden) .modal-content {
- transform: scale(1) translateY(0);
- opacity: 1;
-}
-
-.modal-content h2#result-message {
- margin-bottom: 25px;
- font-family: var(--font-fancy);
- font-size: 2.5em;
- line-height: 1.2;
-}
-
-/* Стили для кнопки "В меню выбора игры" */
+.modal:not(.hidden) .modal-content { transform: scale(1) translateY(0); opacity: 1; }
+.modal-content h2#result-message { margin-bottom: 25px; font-family: var(--font-fancy); font-size: 2.5em; line-height: 1.2; }
.modal-action-button {
- padding: 12px 30px;
- font-size: 1.1em;
- cursor: pointer;
- background: var(--button-bg);
- color: var(--button-text);
- border: 1px solid rgba(0, 0, 0, 0.3);
- border-radius: 6px;
- margin-top: 20px;
- font-weight: bold;
- text-transform: uppercase;
- letter-spacing: 1px;
- transition: all 0.2s ease;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
- outline: none;
+ padding: 12px 30px; font-size: 1.1em; cursor: pointer; background: var(--button-bg); color: var(--button-text);
+ border: 1px solid rgba(0, 0, 0, 0.3); border-radius: 6px; margin-top: 20px; font-weight: bold;
+ text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s ease; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); outline: none;
}
-
.modal-action-button:hover:enabled {
- background: var(--button-hover-bg);
- transform: scale(1.05) translateY(-1px);
- box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
+ background: var(--button-hover-bg); transform: scale(1.05) translateY(-1px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}
+.modal-action-button:active:enabled { transform: scale(1) translateY(0); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); }
+.modal-action-button:disabled { background: var(--button-disabled-bg); color: var(--button-disabled-text); cursor: not-allowed; opacity: 0.7; }
+.modal-action-button i { margin-right: 8px; }
-.modal-action-button:active:enabled {
- transform: scale(1) translateY(0);
- box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
-}
-
-.modal-action-button:disabled {
- background: var(--button-disabled-bg);
- color: var(--button-disabled-text);
- cursor: not-allowed;
- opacity: 0.7;
-}
-
-.modal-action-button i {
- margin-right: 8px;
-}
-
-
-/* --- Анимации --- */
-
-/* Анимация пульсации красной рамки (для нехватки ресурса) */
-@keyframes pulse-red-border {
- 0%, 100% { border-color: var(--damage-color); }
- 50% { border-color: #ffb3b3; }
-}
-
-/* === Анимация для таймера, когда времени мало === */
-@keyframes pulse-timer-warning {
- 0%, 100% { color: var(--timer-low-time-color); transform: scale(1); }
- 50% { color: #ff6347; transform: scale(1.05); } /* Томатный цвет для пульсации */
-}
-
-
-/* Анимация вспышки при касте (добавляется JS классом) */
+/* Анимации */
+@keyframes pulse-red-border { 0%, 100% { border-color: var(--damage-color); } 50% { border-color: #ffb3b3; } }
+@keyframes pulse-timer-warning { 0%, 100% { color: var(--timer-low-time-color); transform: scale(1); } 50% { color: #ff6347; transform: scale(1.05); } }
@keyframes flash-effect {
0%, 100% {
- /* Возвращаем к исходным стилям панели */
box-shadow: var(--initial-box-shadow, 0 0 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.3));
- border-color: var(--initial-border-color, var(--panel-border));
- transform: scale(1);
+ border-color: var(--initial-border-color, var(--panel-border)); transform: scale(1);
}
50% {
- /* Стиль вспышки */
box-shadow: 0 0 25px 10px var(--flash-color-outer, rgba(255, 255, 255, 0.7)),
inset 0 0 15px var(--flash-color-inner, rgba(255, 255, 255, 0.4)),
- 0 0 15px rgba(0, 0, 0, 0.4); /* Сохраняем базовую тень */
- border-color: var(--flash-border-color, #ffffff);
- transform: scale(1.005); /* Легкое увеличение */
+ 0 0 15px rgba(0, 0, 0, 0.4);
+ border-color: var(--flash-border-color, #ffffff); transform: scale(1.005);
}
}
-
-/* Применение анимации каста к панели (добавляется через JS) */
-[class*="is-casting-"] {
- animation: flash-effect var(--cast-duration) ease-out;
-}
-
-/* Цвета для разных кастов (переменные для keyframes flash-effect) */
-#player-panel.is-casting-heal, #opponent-panel.is-casting-heal {
- --flash-color-outer: rgba(144, 238, 144, 0.7); --flash-color-inner: rgba(144, 238, 144, 0.4);
- --flash-border-color: var(--heal-color);
-}
-#player-panel.is-casting-fireball, #opponent-panel.is-casting-fireball {
- --flash-color-outer: rgba(255, 100, 100, 0.7); --flash-color-inner: rgba(255, 100, 100, 0.4);
- --flash-border-color: var(--damage-color);
-}
-#player-panel.is-casting-shadowBolt, #opponent-panel.is-casting-shadowBolt { /* Для Альмагест */
- --flash-color-outer: rgba(138, 43, 226, 0.6); --flash-color-inner: rgba(138, 43, 226, 0.3);
- --flash-border-color: var(--dark-energy-color);
-}
-/* Добавить для других способностей и персонажей */
-
-
-/* Анимация тряски при получении урона */
+[class*="is-casting-"] { animation: flash-effect var(--cast-duration) ease-out; }
+#player-panel.is-casting-heal, #opponent-panel.is-casting-heal { --flash-color-outer: rgba(144, 238, 144, 0.7); --flash-color-inner: rgba(144, 238, 144, 0.4); --flash-border-color: var(--heal-color); }
+#player-panel.is-casting-fireball, #opponent-panel.is-casting-fireball { --flash-color-outer: rgba(255, 100, 100, 0.7); --flash-color-inner: rgba(255, 100, 100, 0.4); --flash-border-color: var(--damage-color); }
+#player-panel.is-casting-shadowBolt, #opponent-panel.is-casting-shadowBolt { --flash-color-outer: rgba(138, 43, 226, 0.6); --flash-color-inner: rgba(138, 43, 226, 0.3); --flash-border-color: var(--dark-energy-color); }
@keyframes shake-opponent {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-4px) rotate(-0.5deg); }
20%, 40%, 60%, 80% { transform: translateX(4px) rotate(0.5deg); }
}
-
-/* Применение анимации тряски к панели противника (добавляется JS классом) */
#opponent-panel.is-shaking {
animation: shake-opponent var(--shake-duration) cubic-bezier(.36, .07, .19, .97) both;
- transform: translate3d(0, 0, 0);
- backface-visibility: hidden;
- perspective: 1000px;
+ transform: translate3d(0, 0, 0); backface-visibility: hidden; perspective: 1000px;
}
-
-/* Анимация растворения панели противника (добавляется JS классом) */
#opponent-panel.dissolving {
- opacity: 0;
- transform: scale(0.9) translateY(20px);
- transition: opacity var(--dissolve-duration) ease-in, transform var(--dissolve-duration) ease-in;
- pointer-events: none;
-}
-
-
-/* Анимация короткой тряски (например, при промахе?) */
-@keyframes shake-short {
- 0%, 100% { transform: translateX(0); }
- 25% { transform: translateX(-3px); }
- 50% { transform: translateX(3px); }
- 75% { transform: translateX(-3px); }
-}
-
-.shake-short {
- animation: shake-short 0.3s ease-in-out;
+ opacity: 0; transform: scale(0.9) translateY(20px);
+ transition: opacity var(--dissolve-duration) ease-in, transform var(--dissolve-duration) ease-in; pointer-events: none;
}
+@keyframes shake-short { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-3px); } }
+.shake-short { animation: shake-short 0.3s ease-in-out; }
/* --- Отзывчивость (Медиа-запросы) --- */
-/* === Широкие мобильные и планшеты в портретной ориентации === */
@media (max-width: 900px) {
- body {
- height: auto; /* Позволяет body расти по контенту */
- min-height: 100vh; /* Гарантирует, что body занимает как минимум всю высоту экрана */
- overflow-y: auto; /* Позволяет прокручивать весь body, если контент не помещается */
- padding: 5px 0;
- font-size: 15px;
- justify-content: flex-start; /* Контент начинается сверху */
- }
- .auth-game-setup-wrapper {
- max-height: none; /* Убираем ограничение высоты для обертки аутентификации */
- }
-
- .game-wrapper {
- padding: 5px;
- gap: 5px;
- height: auto; /* Высота по контенту */
- min-height: calc(100vh - 10px); /* Занимает почти всю высоту экрана, оставляя место для padding body */
- width: 100%; /* На всю ширину */
- /* flex-direction: column; уже есть */
- }
+ body { height: auto; min-height: 100vh; overflow-y: auto; padding: 5px 0; font-size: 15px; justify-content: flex-start; }
+ .auth-game-setup-wrapper { max-height: none; }
+ .game-wrapper { padding: 5px; gap: 5px; height: auto; min-height: calc(100vh - 10px); width: 100%; }
.game-header h1 { font-size: 1.5em; }
- /* === НОВЫЕ СТИЛИ ДЛЯ ПЕРЕКЛЮЧЕНИЯ ПАНЕЛЕЙ === */
+ /* Показываем кнопки переключения на мобильных */
.panel-switcher-controls {
- display: flex; /* Показываем кнопки переключения */
+ display: flex;
}
.battle-arena-container {
- /* Убираем flex-direction: column;, так как панели будут абсолютными */
- /* flex-direction: column; */ /* Убрано */
- /* height: auto; */ /* Убрано, теперь flex-grow */
- /* overflow: visible; */ /* Убрано, теперь hidden */
- gap: 0; /* Убираем gap, панели поверх друг друга */
-
- position: relative; /* Для абсолютного позиционирования дочерних */
- overflow: hidden; /* Скрываем неактивную панель */
- flex-grow: 1; /* Занимает основное доступное пространство */
- min-height: 350px; /* Минимальная высота, чтобы было видно контент */
+ gap: 0; /* Убираем отступ между колонками, т.к. они будут накладываться */
+ /* position: relative; overflow: hidden; flex-grow: 1; min-height: 350px; - Эти стили уже есть глобально, но тут подтверждаем */
}
.player-column,
.opponent-column {
- position: absolute;
+ position: absolute; /* Для наложения */
top: 0;
left: 0;
width: 100%;
height: 100%;
- overflow-y: auto; /* Позволяет прокручивать содержимое колонки */
+ overflow-y: auto; /* Прокрутка содержимого колонки */
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
- padding: 5px; /* Небольшой внутренний отступ для контента колонки */
- /* flex-grow: 0; flex-shrink: 1; */ /* Больше не нужны */
- /* min-height: auto; height: auto; */ /* Больше не нужны */
- gap: 8px; /* Сохраняем отступ между fighter-panel и controls/log panel */
+ padding: 5px;
+ gap: 8px;
+ /* display: flex; flex-direction: column; - Эти стили уже есть глобально, но тут подтверждаем */
}
- .player-column {
- transform: translateX(0);
- opacity: 1;
- z-index: 10; /* Активная панель выше */
- pointer-events: auto;
- }
+ .player-column { transform: translateX(0); opacity: 1; z-index: 10; pointer-events: auto; }
+ .opponent-column { transform: translateX(100%); opacity: 0; z-index: 5; pointer-events: none; }
- .opponent-column {
- transform: translateX(100%); /* Скрыта справа */
- opacity: 0;
- z-index: 5;
- pointer-events: none; /* Неактивная панель не должна перехватывать события */
- }
+ .battle-arena-container.show-opponent-panel .player-column { transform: translateX(-100%); opacity: 0; z-index: 5; pointer-events: none; }
+ .battle-arena-container.show-opponent-panel .opponent-column { transform: translateX(0); opacity: 1; z-index: 10; pointer-events: auto; }
- /* Класс, который будет добавляться JS к .battle-arena-container */
- .battle-arena-container.show-opponent-panel .player-column {
- transform: translateX(-100%); /* Сдвигаем влево */
- opacity: 0;
- z-index: 5;
- pointer-events: none;
- }
-
- .battle-arena-container.show-opponent-panel .opponent-column {
- transform: translateX(0); /* Показываем */
- opacity: 1;
- z-index: 10;
- pointer-events: auto;
- }
- /* === КОНЕЦ НОВЫХ СТИЛЕЙ ДЛЯ ПЕРЕКЛЮЧЕНИЯ === */
-
-
- /* Панели внутри колонок (персонажа, управления, лога) */
- .fighter-panel,
- .controls-panel-new,
- .battle-log-new {
- min-height: auto; /* Сбрасываем мин. высоту */
- height: auto; /* Высота по контенту */
+ .fighter-panel, .controls-panel-new, .battle-log-new {
+ min-height: auto; /* Высота по контенту */
+ height: auto;
padding: 10px;
- /* flex-grow: 0; flex-shrink: 1; */ /* Эти свойства не нужны для дочерних элементов абсолютных колонок */
- /* Важно: .controls-panel-new и .battle-log-new теперь часть прокручиваемых колонок */
}
- /* .controls-panel-new и .battle-log-new теперь не имеют фиксированной высоты,
- они будут частью своих родительских .player-column / .opponent-column,
- которые сами прокручиваются. */
- .controls-panel-new {
- /* min-height: 200px; /* Убрано */
- flex-shrink: 0; /* Чтобы не сжималась сильно, если контента мало */
+ .fighter-panel {
+ flex-shrink: 0; /* Не сжимается легко */
}
- .battle-log-new {
- /* height: auto; min-height: 150px; */ /* Убрано */
+ .fighter-panel .panel-content {
+ flex-grow: 1; /* Старается занять доступное место в .fighter-panel */
+ min-height: 0; /* Для корректной работы flex */
+ }
+
+ .controls-panel-new { /* В колонке игрока */
flex-shrink: 0;
+ min-height: 200px; /* Чтобы кнопки были видны */
+ }
+ .battle-log-new { /* В колонке противника */
+ flex-shrink: 0;
+ min-height: 150px; /* Чтобы лог был виден */
}
- #log-list {
- max-height: 200px; /* Ограничение высоты списка логов остается актуальным */
- }
-
- .abilities-grid {
- max-height: none; /* Сетка способностей может расти */
- overflow-y: visible; /* Прокрутка будет у родительской колонки */
- padding-bottom: 8px;
- }
- .abilities-grid::after { display: none; } /* Убираем псевдоэлемент для отступа */
-
- /* .ability-list, .controls-layout { overflow: visible; } */ /* Убрано, прокрутка у колонки */
+ #log-list { max-height: 200px; }
+ .abilities-grid { max-height: none; overflow-y: visible; padding-bottom: 8px; } /* Скролл у родителя */
+ .abilities-grid::after { display: none; }
.fighter-name { font-size: 1.3em; }
- .panel-content {
- /* margin-top: 10px; */ /* Уже есть padding-top */
- overflow-y: visible; /* Контент панели персонажа не должен сам скроллиться, скроллится колонка */
- }
.stat-bar-container .bar-icon { font-size: 1.2em; }
.bar { height: 18px; }
.effects-area, .effect { font-size: 0.85em; }
#turn-indicator { font-size: 1.2em; margin-bottom: 8px; }
-
.turn-timer-display { font-size: 0.85em; margin-bottom: 8px; padding: 4px; }
#turn-timer { font-size: 1em; }
-
.action-button.basic { font-size: 0.8em; padding: 8px 4px; }
- /* .abilities-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; padding: 8px; } */
- /* Размер кнопок способностей можно оставить как есть или немного адаптировать */
.ability-button { font-size: 0.75em; padding: 5px; }
.ability-button .ability-name { margin-bottom: 2px; }
.ability-button .ability-desc { font-size: 0.65em; }
@@ -1529,7 +661,6 @@ label[for="char-almagest"] i {
.modal-content { padding: 25px 30px; width: 90%; max-width: 400px; }
.modal-content h2#result-message { font-size: 1.8em; }
.modal-action-button { font-size: 1em; padding: 10px 20px; }
-
#game-setup { max-width: 95%; padding: 15px; }
#game-setup h2 { font-size: 1.6em; }
#game-setup h3 { font-size: 1.1em; }
@@ -1539,57 +670,34 @@ label[for="char-almagest"] i {
.character-selection label { margin: 0 10px; font-size: 1em; }
}
-/* === Маленькие мобильные экраны === */
@media (max-width: 480px) {
body { font-size: 14px; }
.game-header h1 { font-size: 1.3em; }
-
- /* Прячем текст на кнопках переключения, оставляем иконки */
- .panel-switch-button .button-text {
- display: none;
- }
- .panel-switch-button i {
- margin-right: 0; /* Убираем отступ, так как текста нет */
- font-size: 1.2em; /* Можно чуть увеличить иконку */
- }
- .panel-switch-button {
- padding: 6px 8px; /* Уменьшаем паддинги */
- }
-
-
+ .panel-switch-button .button-text { display: none; } /* Скрываем текст, оставляем иконки */
+ .panel-switch-button i { margin-right: 0; font-size: 1.2em; }
+ .panel-switch-button { padding: 6px 8px; }
.fighter-name { font-size: 1.2em; }
- .avatar-image { max-width: 40px; } /* Уменьшаем аватар */
-
- .abilities-grid {
- grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
- gap: 5px; padding: 5px;
- }
+ .avatar-image { max-width: 40px; }
+ .abilities-grid { grid-template-columns: repeat(auto-fit, minmax(65px, 1fr)); gap: 5px; padding: 5px; }
.ability-button { font-size: 0.7em; padding: 4px; }
.ability-button .ability-name { margin-bottom: 1px; }
.ability-button .ability-desc { display: none; } /* Скрываем описание способности */
-
#log-list { font-size: 0.8em; max-height: 150px; }
-
.modal-content { padding: 20px; }
.modal-content h2#result-message { font-size: 1.6em; }
.modal-action-button { font-size: 0.9em; padding: 8px 16px; }
-
.auth-game-setup-wrapper { padding: 15px; }
#game-setup { padding: 10px; }
#game-setup h2 { font-size: 1.4em; }
#game-setup button { padding: 7px 10px; font-size: 0.85em; margin: 5px; }
- #game-setup input[type="text"],
- #game-setup button { display: block; width: 100%; margin-left: 0; margin-right: 0; }
+ #game-setup input[type="text"], #game-setup button { display: block; width: 100%; margin-left: 0; margin-right: 0; }
#game-setup input[type="text"] { max-width: none; margin-bottom: 10px; }
#game-setup div>input[type="text"]+button { margin-top: 5px; }
-
#available-games-list { max-height: 120px; }
#available-games-list li button { font-size: 0.75em; padding: 5px 8px; }
-
.character-selection { padding: 10px; }
.character-selection label { margin: 0 5px 5px 5px; font-size: 0.9em; display: block; }
.character-selection label i { margin-right: 5px; }
-
#turn-indicator { font-size: 1.1em; }
.turn-timer-display { font-size: 0.8em; margin-top: -3px; margin-bottom: 6px; }
#turn-timer { font-size: 0.95em; }