This commit is contained in:
2026-01-27 01:38:53 +03:00
parent 1c231fe28d
commit a4479916f9
4 changed files with 682 additions and 458 deletions

View File

@ -403,15 +403,177 @@ html, body {
.turn-timer.timer-warn { color: var(--amber); border-color: var(--amber); animation: timerPulse 1s ease-in-out infinite; }
.turn-timer.timer-ended { color: var(--red); }
@keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.game-log-wrap { max-width: 200px; max-height: 80px; overflow: hidden; }
.game-log {
max-height: 80px;
overflow-y: auto;
font-size: 0.8rem;
color: #94a3b8;
line-height: 1.35;
/* Chat */
.chat-container {
position: fixed;
bottom: 20px;
right: 20px;
width: 320px;
max-width: calc(100vw - 40px);
background: linear-gradient(145deg, rgba(13,18,25,0.95) 0%, rgba(5,10,18,0.98) 100%);
border: 2px solid rgba(0,180,255,0.3);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.6);
z-index: 150;
display: flex;
flex-direction: column;
max-height: 400px;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.chat-container.collapsed {
max-height: 50px;
overflow: hidden;
}
.chat-container.collapsed .chat-content {
display: none;
}
.chat-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
background: rgba(0,0,0,0.3);
border-bottom: 1px solid rgba(0,180,255,0.2);
border-radius: 12px 12px 0 0;
cursor: pointer;
user-select: none;
}
.chat-title {
font-weight: 600;
color: var(--cyan);
font-size: 0.95rem;
}
.btn-chat-toggle {
background: transparent;
border: none;
color: var(--cyan);
font-size: 0.8rem;
cursor: pointer;
padding: 0.25rem 0.5rem;
transition: transform 0.2s;
}
.chat-container.collapsed .btn-chat-toggle {
transform: rotate(-90deg);
}
.chat-content {
display: flex;
flex-direction: column;
height: 350px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 0.75rem;
font-size: 0.85rem;
line-height: 1.4;
-webkit-overflow-scrolling: touch;
}
.chat-message {
margin-bottom: 0.5rem;
padding: 0.4rem 0.6rem;
border-radius: 6px;
background: rgba(0,0,0,0.3);
word-wrap: break-word;
}
.chat-message.system {
color: #94a3b8;
font-style: italic;
background: rgba(148,163,184,0.1);
}
.chat-message.user {
color: var(--cyan);
background: rgba(0,180,255,0.1);
}
.chat-message .chat-username {
font-weight: 600;
margin-right: 0.5rem;
}
.chat-message .chat-time {
font-size: 0.7rem;
color: #64748b;
margin-left: 0.5rem;
}
.chat-input-container {
display: flex;
gap: 0.5rem;
padding: 0.75rem;
border-top: 1px solid rgba(0,180,255,0.2);
background: rgba(0,0,0,0.2);
}
.chat-input {
flex: 1;
padding: 0.5rem 0.75rem;
background: rgba(0,0,0,0.4);
border: 1px solid rgba(0,180,255,0.3);
border-radius: 6px;
color: #e2e8f0;
font-size: 0.85rem;
font-family: var(--font-body);
}
.chat-input:focus {
outline: none;
border-color: var(--cyan);
box-shadow: 0 0 8px rgba(0,180,255,0.3);
}
.btn-chat-send {
padding: 0.5rem 1rem;
background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
border: none;
border-radius: 6px;
color: #0d1219;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s;
}
.btn-chat-send:hover:not(:disabled) {
background: linear-gradient(135deg, var(--cyan-dim) 0%, var(--cyan) 100%);
transform: scale(1.05);
}
.btn-chat-send:disabled {
opacity: 0.5;
cursor: not-allowed;
}
@media (max-width: 768px) {
.chat-container {
width: calc(100vw - 20px);
right: 10px;
bottom: 10px;
max-height: 300px;
}
.chat-content {
height: 250px;
}
.chat-input-container {
flex-direction: column;
}
.btn-chat-send {
width: 100%;
}
}
.game-log-line { margin-bottom: 0.2rem; }
@keyframes yourTurnGlow {
0%, 100% { box-shadow: 0 0 12px rgba(94,179,232,0.5); transform: scale(1); }
50% { box-shadow: 0 0 24px rgba(94,179,232,0.8); transform: scale(1.04); }
@ -610,11 +772,17 @@ html, body {
flex-shrink: 0;
}
.card-wrap.disabled { cursor: not-allowed; opacity: 0.6; }
.card-wrap.not-enough-mana {
cursor: not-allowed;
opacity: 0.5;
filter: grayscale(0.3) brightness(0.7);
pointer-events: none;
}
.card-wrap.in-hand {
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
transform: rotate(var(--hand-rotate, 0deg));
}
.card-wrap.in-hand:hover:not(.disabled) {
.card-wrap.in-hand:hover:not(.disabled):not(.not-enough-mana) {
transform: rotate(var(--hand-rotate, 0deg)) translateY(-20px) scale(1.08);
z-index: 20;
}
@ -1401,17 +1569,17 @@ html, body {
.card-info-modal .card-info-abilities { font-size: 0.85rem; color: var(--amber); margin-bottom: 0.5rem; }
.card-info-modal .card-info-bio { font-size: 0.8rem; color: #94a3b8; line-height: 1.4; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(148,163,184,0.3); }
.card-info-modal .hidden { display: none !important; }
/* Forge Sidebar */
/* Forge Sidebar - Новая версия */
.forge-sidebar {
position: fixed;
top: 0;
right: 0;
width: 400px;
max-width: 90vw;
width: 90vw;
max-width: 1200px;
height: 100vh;
background: linear-gradient(145deg, #2d2a22 0%, #1a1814 100%);
background: linear-gradient(145deg, #1a1814 0%, #0d0a08 100%);
border-left: 3px solid var(--gold);
box-shadow: -5px 0 30px rgba(0,0,0,0.8);
box-shadow: -5px 0 40px rgba(0,0,0,0.9);
z-index: 200;
display: flex;
flex-direction: column;
@ -1429,24 +1597,26 @@ html, body {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
padding: 1.25rem 1.5rem;
border-bottom: 2px solid var(--gold);
background: rgba(0,0,0,0.3);
background: rgba(0,0,0,0.4);
flex-shrink: 0;
}
.forge-sidebar-header h2 {
margin: 0;
font-family: var(--font-display);
font-size: 1.5rem;
color: var(--gold);
text-shadow: 0 0 10px rgba(212,168,75,0.5);
}
.btn-forge-close {
background: transparent;
border: 2px solid var(--gold);
color: var(--gold);
width: 36px;
height: 36px;
width: 40px;
height: 40px;
border-radius: 50%;
font-size: 1.5rem;
font-size: 1.8rem;
line-height: 1;
cursor: pointer;
transition: all 0.2s;
@ -1459,101 +1629,113 @@ html, body {
background: var(--gold);
color: #1a1814;
transform: scale(1.1);
box-shadow: 0 0 15px rgba(212,168,75,0.6);
}
.forge-hint {
padding: 1rem 1.5rem;
font-size: 0.85rem;
color: #94a3b8;
margin: 0;
text-align: center;
background: rgba(0,0,0,0.2);
}
.forge-selected {
min-height: 150px;
padding: 1rem;
background: rgba(0,180,255,0.1);
border: 2px dashed rgba(0,180,255,0.3);
border-radius: 8px;
margin: 1rem 1.5rem;
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
align-items: center;
justify-content: center;
transition: all 0.3s;
}
.forge-selected.drag-over {
background: rgba(0,180,255,0.2);
border-color: var(--cyan);
border-style: solid;
box-shadow: 0 0 20px rgba(0,180,255,0.5);
}
.forge-selected-empty {
color: #94a3b8;
font-size: 0.9rem;
width: 100%;
text-align: center;
padding: 2rem 0;
}
.forge-deck-section {
.forge-main-content {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
padding: 0 1.5rem;
padding: 1rem;
}
.forge-deck-section h3 {
font-size: 1rem;
color: var(--gold);
margin: 0 0 0.75rem 0;
font-family: var(--font-display);
}
.forge-deck-list {
.forge-columns {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
gap: 0.75rem;
overflow-y: auto;
padding: 0.75rem;
grid-template-columns: 1fr 1.2fr 1fr;
gap: 1rem;
height: 100%;
overflow: hidden;
}
.forge-column {
display: flex;
flex-direction: column;
overflow: hidden;
background: rgba(0,0,0,0.3);
border-radius: 8px;
flex: 1;
border: 1px solid rgba(212,168,75,0.2);
}
.forge-deck-card {
position: relative;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
border: 2px solid transparent;
user-select: none;
}
.forge-deck-card:hover {
transform: scale(1.1);
box-shadow: 0 0 15px rgba(0,180,255,0.5);
}
.forge-deck-card.selected {
border-color: var(--cyan);
box-shadow: 0 0 20px rgba(0,180,255,0.7);
}
.forge-deck-card.dragging {
opacity: 0.5;
}
.forge-actions {
padding: 1.5rem;
border-top: 2px solid var(--gold);
.forge-column-title {
font-size: 0.95rem;
color: var(--gold);
margin: 0;
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(212,168,75,0.2);
background: rgba(0,0,0,0.3);
font-family: var(--font-display);
font-weight: 600;
flex-shrink: 0;
}
.forge-actions .btn {
.forge-cards-list {
flex: 1;
overflow-y: auto;
padding: 0.75rem;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 0.75rem;
-webkit-overflow-scrolling: touch;
}
.forge-cards-list .card-wrap {
cursor: pointer;
transition: all 0.2s;
border: 2px solid transparent;
}
.forge-cards-list .card-wrap:hover {
transform: translateY(-5px) scale(1.05);
border-color: var(--cyan);
box-shadow: 0 0 20px rgba(0,180,255,0.5);
z-index: 10;
}
.forge-cards-list .card-wrap.selected {
border-color: var(--cyan);
box-shadow: 0 0 25px rgba(0,180,255,0.7);
transform: scale(1.05);
}
.forge-selected-column {
background: rgba(0,180,255,0.05);
border-color: rgba(0,180,255,0.3);
}
.forge-selected {
flex: 1;
padding: 1rem;
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
align-items: flex-start;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.forge-selected-empty {
width: 100%;
color: #94a3b8;
font-size: 0.9rem;
text-align: center;
padding: 3rem 1rem;
font-style: italic;
}
.forge-selected .card-wrap {
.forge-selected-card {
position: relative;
cursor: pointer;
transition: all 0.2s;
}
.forge-selected .card-wrap:hover {
.forge-selected-card:hover {
transform: scale(1.1);
z-index: 5;
}
.forge-selected .card-wrap::before {
content: '';
.forge-selected-card::before {
content: '×';
position: absolute;
top: -8px;
right: -8px;
@ -1562,36 +1744,51 @@ html, body {
background: rgba(255,70,70,0.9);
border: 2px solid #fff;
border-radius: 50%;
z-index: 10;
transition: all 0.2s;
opacity: 0;
}
.forge-selected .card-wrap:hover::before {
opacity: 1;
}
.forge-selected .card-wrap::after {
content: '×';
position: absolute;
top: -8px;
right: -8px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
font-size: 16px;
color: #fff;
cursor: pointer;
z-index: 11;
transition: all 0.2s;
font-weight: 800;
z-index: 10;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
}
.forge-selected .card-wrap:hover::after {
.forge-selected-card:hover::before {
opacity: 1;
pointer-events: auto;
}
.forge-actions {
padding: 1rem 1.5rem;
border-top: 2px solid var(--gold);
background: rgba(0,0,0,0.4);
display: flex;
gap: 1rem;
flex-shrink: 0;
}
.forge-actions .btn {
flex: 1;
}
.forge-actions .btn-primary {
background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
color: #1a0f00;
font-weight: 700;
}
.forge-actions .btn-primary:hover:not(:disabled) {
background: linear-gradient(135deg, #b8860b 0%, var(--gold) 100%);
box-shadow: 0 0 20px rgba(212,168,75,0.6);
}
.forge-actions .btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-10px); }
@ -2279,32 +2476,37 @@ html, body {
right: 0;
left: 0;
border-radius: 0;
max-height: 100vh;
}
.forge-columns {
grid-template-columns: 1fr;
grid-template-rows: auto auto auto;
gap: 0.75rem;
max-height: calc(100vh - 200px);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.forge-deck-list {
.forge-column {
max-height: 300px;
}
.forge-cards-list {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 0.5rem;
max-height: 300px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.forge-deck-card {
width: 80px !important;
height: 112px !important;
touch-action: manipulation;
max-height: 250px;
}
.forge-selected {
min-height: 120px;
touch-action: manipulation;
max-height: 200px;
}
.forge-selected-card {
touch-action: manipulation;
.forge-actions {
flex-direction: column;
}
.forge-actions .btn {
width: 100%;
}
.mana-display, .health-display {
@ -2320,11 +2522,23 @@ html, body {
font-size: 0.85rem;
}
.game-log {
font-size: 0.75rem;
max-height: 60px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
.chat-container {
width: calc(100vw - 20px);
right: 10px;
bottom: 10px;
max-height: 300px;
}
.chat-content {
height: 250px;
}
.chat-input-container {
flex-direction: column;
}
.btn-chat-send {
width: 100%;
}
.card-name {