feat: Implement Inventory Grid View and GameButton
This commit is contained in:
@@ -115,27 +115,6 @@ html {
|
||||
text-shadow: 0 0 10px rgba(234, 113, 66, 0.3);
|
||||
}
|
||||
|
||||
/* Player Count Badge */
|
||||
.player-count-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 10px;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 20px;
|
||||
font-size: 0.8rem;
|
||||
color: #aaa;
|
||||
margin-right: 12px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.player-count-badge:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
@@ -457,7 +436,7 @@ html {
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
padding: 0.3rem 0.8rem;
|
||||
border-radius: var(--game-radius-sm);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
@@ -516,11 +495,11 @@ html {
|
||||
padding: 0.35rem 0.75rem;
|
||||
background: rgba(107, 185, 240, 0.15);
|
||||
border: 1px solid rgba(107, 185, 240, 0.4);
|
||||
border-radius: 16px;
|
||||
font-size: 0.85rem;
|
||||
color: #6bb9f0;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.location-tag:hover {
|
||||
@@ -708,8 +687,8 @@ html {
|
||||
margin: 1rem auto;
|
||||
aspect-ratio: 10 / 7;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
border: 2px solid rgba(255, 107, 107, 0.3);
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.location-image {
|
||||
@@ -721,19 +700,19 @@ html {
|
||||
.message-box {
|
||||
background: rgba(255, 107, 107, 0.2);
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
border-left: 4px solid #ff6b6b;
|
||||
color: #fff;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
/* Location Messages Log */
|
||||
.location-messages-log {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 8px;
|
||||
border: 2px solid rgba(255, 107, 107, 0.2);
|
||||
background: var(--game-bg-panel);
|
||||
border: 1px solid var(--game-border-color);
|
||||
padding: 0.8rem;
|
||||
margin-top: 1rem;
|
||||
max-width: 100%;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.location-messages-log h4 {
|
||||
@@ -744,7 +723,8 @@ html {
|
||||
}
|
||||
|
||||
.messages-scroll {
|
||||
max-height: 150px;
|
||||
height: 5.5rem;
|
||||
/* Compact fixed height (~3 lines) */
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -756,7 +736,7 @@ html {
|
||||
gap: 0.5rem;
|
||||
padding: 0.4rem 0.6rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-radius: 4px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -804,9 +784,9 @@ html {
|
||||
border: 1px solid var(--game-border-color);
|
||||
background: linear-gradient(135deg, rgba(80, 80, 90, 0.3) 0%, rgba(40, 40, 50, 0.5) 100%);
|
||||
color: var(--game-text-primary);
|
||||
border-radius: var(--game-radius-sm);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -879,9 +859,9 @@ html {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border-radius: 12px;
|
||||
border: 2px solid rgba(255, 107, 107, 0.5);
|
||||
border: 1px solid rgba(255, 107, 107, 0.5);
|
||||
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.compass-icon {
|
||||
@@ -915,9 +895,9 @@ html {
|
||||
.compass-center-btn {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--game-color-primary);
|
||||
background: radial-gradient(circle, rgba(225, 29, 72, 0.2) 0%, rgba(20, 20, 20, 0.8) 100%);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -985,10 +965,10 @@ html {
|
||||
margin: 0.5rem 0;
|
||||
background: rgba(255, 152, 0, 0.2);
|
||||
border: 2px solid rgba(255, 152, 0, 0.5);
|
||||
border-radius: 8px;
|
||||
color: #ff9800;
|
||||
font-weight: bold;
|
||||
font-size: 1.1rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
/* Special movement buttons */
|
||||
@@ -1005,9 +985,9 @@ html {
|
||||
background: rgba(107, 147, 255, 0.3);
|
||||
color: #fff;
|
||||
font-size: 0.95rem;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -1034,10 +1014,10 @@ html {
|
||||
border: none;
|
||||
background: rgba(76, 175, 80, 0.3);
|
||||
color: #fff;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 0.95rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.action-button:hover {
|
||||
@@ -1047,10 +1027,10 @@ html {
|
||||
|
||||
/* Interactables Section */
|
||||
.interactables-section {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
background: var(--game-bg-panel);
|
||||
padding: 1.5rem;
|
||||
border-radius: 10px;
|
||||
border: 2px solid rgba(255, 193, 7, 0.3);
|
||||
border: 1px solid var(--game-border-color);
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.interactables-section h3 {
|
||||
@@ -1065,13 +1045,13 @@ body.no-scroll {
|
||||
/* Interactable Card with Image */
|
||||
.interactable-card {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-radius: 8px;
|
||||
margin-bottom: 1rem;
|
||||
border: 2px solid rgba(255, 193, 7, 0.4);
|
||||
border: 1px solid rgba(255, 193, 7, 0.4);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: all 0.3s;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.interactable-card:hover {
|
||||
@@ -1136,10 +1116,10 @@ body.no-scroll {
|
||||
border: none;
|
||||
background: rgba(255, 193, 7, 0.3);
|
||||
color: #fff;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 0.9rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.interact-btn:hover {
|
||||
@@ -1160,10 +1140,10 @@ body.no-scroll {
|
||||
}
|
||||
|
||||
.entity-section {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
background: var(--game-bg-panel);
|
||||
padding: 1.5rem;
|
||||
border-radius: 10px;
|
||||
border: 2px solid rgba(255, 107, 107, 0.3);
|
||||
border: 1px solid var(--game-border-color);
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.entity-section h3 {
|
||||
@@ -1210,13 +1190,13 @@ body.no-scroll {
|
||||
.entity-card {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
transition: all 0.3s;
|
||||
min-width: 320px;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.entity-card:hover {
|
||||
@@ -1306,12 +1286,12 @@ body.no-scroll {
|
||||
border: none;
|
||||
background: linear-gradient(135deg, #6bb9f0, #89d4ff);
|
||||
color: white;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
transition: all 0.3s;
|
||||
white-space: nowrap;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.entity-action-btn:hover {
|
||||
@@ -1375,9 +1355,9 @@ body.no-scroll {
|
||||
.corpse-details {
|
||||
background: rgba(156, 39, 176, 0.1);
|
||||
border: 2px solid rgba(156, 39, 176, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
animation: fadeIn 0.2s ease-out;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
@@ -1434,9 +1414,9 @@ body.no-scroll {
|
||||
align-items: center;
|
||||
padding: 0.75rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-radius: 6px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.corpse-item:hover {
|
||||
@@ -1518,11 +1498,11 @@ body.no-scroll {
|
||||
border: none;
|
||||
background: linear-gradient(135deg, #9c27b0, #ba68c8);
|
||||
color: white;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
transition: all 0.3s;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.loot-all-btn:hover {
|
||||
@@ -1535,9 +1515,9 @@ body.no-scroll {
|
||||
width: 100px;
|
||||
height: 70px;
|
||||
flex-shrink: 0;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.entity-image img {
|
||||
@@ -1563,9 +1543,9 @@ body.no-scroll {
|
||||
.inventory-panel {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 1.5rem;
|
||||
border-radius: 10px;
|
||||
border: 2px solid rgba(107, 147, 255, 0.3);
|
||||
height: fit-content;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.inventory-panel h3 {
|
||||
@@ -1702,8 +1682,8 @@ body.no-scroll {
|
||||
.profile-section {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 1.5rem;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 107, 107, 0.3);
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.profile-section h3 {
|
||||
@@ -1718,7 +1698,7 @@ body.no-scroll {
|
||||
padding: 0.75rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
margin-bottom: 0.5rem;
|
||||
border-radius: 5px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.stat-row.highlight {
|
||||
@@ -1732,11 +1712,11 @@ body.no-scroll {
|
||||
border: none;
|
||||
background: #ff6b6b;
|
||||
color: white;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.button-primary:hover {
|
||||
@@ -1747,10 +1727,10 @@ body.no-scroll {
|
||||
|
||||
/* Profile Sidebar */
|
||||
.profile-sidebar {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 10px;
|
||||
background: var(--game-bg-panel);
|
||||
padding: 1rem;
|
||||
border: 2px solid rgba(255, 107, 107, 0.3);
|
||||
border: 1px solid var(--game-border-color);
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.profile-sidebar h3 {
|
||||
@@ -1786,13 +1766,13 @@ body.no-scroll {
|
||||
.sidebar-progress-bar {
|
||||
height: 24px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 6px;
|
||||
overflow: visible;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.sidebar-progress-fill {
|
||||
@@ -1801,7 +1781,6 @@ body.no-scroll {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.progress-percentage {
|
||||
@@ -1842,8 +1821,8 @@ body.no-scroll {
|
||||
margin: 1rem 0;
|
||||
padding: 1rem;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(255, 107, 107, 0.3);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.capacity-info {
|
||||
@@ -1874,16 +1853,15 @@ body.no-scroll {
|
||||
.capacity-bar {
|
||||
height: 20px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 107, 107, 0.2);
|
||||
position: relative;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.capacity-fill {
|
||||
height: 100%;
|
||||
transition: width 0.3s ease;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* Single color for capacity bars */
|
||||
@@ -1918,17 +1896,17 @@ body.no-scroll {
|
||||
gap: 0.5rem;
|
||||
padding: 0.4rem 0.5rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-radius: 4px;
|
||||
font-size: 0.9rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.stat-plus-btn {
|
||||
background: rgba(107, 185, 240, 0.3);
|
||||
border: 1px solid #6bb9f0;
|
||||
color: #6bb9f0;
|
||||
border-radius: 4px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -1974,11 +1952,11 @@ body.no-scroll {
|
||||
|
||||
/* Equipment Sidebar */
|
||||
.equipment-sidebar {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 10px;
|
||||
background: var(--game-bg-panel);
|
||||
padding: 1rem;
|
||||
border: 1px solid rgba(255, 107, 107, 0.3);
|
||||
border: 1px solid var(--game-border-color);
|
||||
overflow: visible;
|
||||
clip-path: var(--game-clip-path);
|
||||
/* Allow tooltips to overflow */
|
||||
}
|
||||
|
||||
@@ -2029,12 +2007,12 @@ body.no-scroll {
|
||||
.equipment-slot {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
clip-path: var(--game-clip-path);
|
||||
/* Changed from center to space-between */
|
||||
gap: 0.25rem;
|
||||
/* Fixed dimensions for consistent sizing */
|
||||
@@ -2110,9 +2088,9 @@ body.no-scroll {
|
||||
right: 4px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: rgba(244, 67, 54, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
color: #fff;
|
||||
font-size: 0.7rem;
|
||||
font-weight: bold;
|
||||
@@ -2141,8 +2119,8 @@ body.no-scroll {
|
||||
transform: translateX(-50%);
|
||||
background: rgba(30, 30, 30, 0.98);
|
||||
border: 2px solid #ff6b6b;
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
min-width: 220px;
|
||||
max-width: 300px;
|
||||
z-index: 10000;
|
||||
@@ -2196,9 +2174,9 @@ body.no-scroll {
|
||||
font-size: 0.7rem;
|
||||
/* Slightly larger font */
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
@@ -2293,7 +2271,7 @@ body.no-scroll {
|
||||
color: #6bb9f0;
|
||||
background: rgba(107, 185, 240, 0.1);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.equipment-slot-label {
|
||||
@@ -2305,10 +2283,10 @@ body.no-scroll {
|
||||
/* Inventory Sidebar */
|
||||
.inventory-sidebar {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
padding-top: 3rem;
|
||||
border: 1px solid rgba(107, 185, 240, 0.3);
|
||||
clip-path: var(--game-clip-path);
|
||||
overflow: visible;
|
||||
/* Allow tooltips and dropdowns to show */
|
||||
position: relative;
|
||||
@@ -2336,10 +2314,10 @@ body.no-scroll {
|
||||
aspect-ratio: 1;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -2387,7 +2365,7 @@ body.no-scroll {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 600;
|
||||
padding: 1px 4px;
|
||||
border-radius: 3px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.sidebar-empty {
|
||||
@@ -2465,9 +2443,9 @@ body.no-scroll {
|
||||
.inventory-item-row-hover {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
padding: 0.75rem;
|
||||
display: flex;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
@@ -2501,9 +2479,9 @@ body.no-scroll {
|
||||
left: 0;
|
||||
background: rgba(30, 30, 30, 0.98);
|
||||
border: 2px solid #6bb9f0;
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
min-width: 220px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
max-width: 300px;
|
||||
z-index: 10000;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
||||
@@ -2540,10 +2518,10 @@ body.no-scroll {
|
||||
border: 1px solid #6bb9f0;
|
||||
color: #6bb9f0;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
white-space: nowrap;
|
||||
min-width: 60px;
|
||||
}
|
||||
@@ -2606,9 +2584,9 @@ body.no-scroll {
|
||||
right: 0;
|
||||
background: rgba(30, 30, 30, 0.98);
|
||||
border: 2px solid #6bb9f0;
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
min-width: 220px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
max-width: 300px;
|
||||
z-index: 10000;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
||||
@@ -2710,9 +2688,9 @@ body.no-scroll {
|
||||
padding-bottom: 4px;
|
||||
background: rgba(30, 30, 30, 0.98);
|
||||
border: 2px solid #f44336;
|
||||
border-radius: 8px;
|
||||
padding: 0.5rem;
|
||||
min-width: 120px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
z-index: 10000;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
||||
flex-direction: column;
|
||||
@@ -2741,10 +2719,10 @@ body.no-scroll {
|
||||
border: 1px solid #f44336;
|
||||
color: #f44336;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -2769,9 +2747,9 @@ body.no-scroll {
|
||||
padding-bottom: 4px;
|
||||
background: rgba(30, 30, 30, 0.98);
|
||||
border: 2px solid #4caf50;
|
||||
border-radius: 8px;
|
||||
padding: 0.5rem;
|
||||
min-width: 140px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
z-index: 10000;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
||||
flex-direction: column;
|
||||
@@ -2799,10 +2777,10 @@ body.no-scroll {
|
||||
border: 1px solid #4caf50;
|
||||
color: #4caf50;
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -2823,10 +2801,10 @@ body.no-scroll {
|
||||
.inventory-item-row {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
gap: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
@@ -2854,8 +2832,8 @@ body.no-scroll {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.item-icon-small img {
|
||||
@@ -2888,7 +2866,7 @@ body.no-scroll {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 600;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
/* Category Filter */
|
||||
@@ -2903,10 +2881,10 @@ body.no-scroll {
|
||||
padding: 0.5rem;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -2956,9 +2934,9 @@ body.no-scroll {
|
||||
.item-actions-panel {
|
||||
background: rgba(107, 185, 240, 0.1);
|
||||
border: 2px solid #6bb9f0;
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
margin-top: 1rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.item-details-header {
|
||||
@@ -3010,11 +2988,11 @@ body.no-scroll {
|
||||
.item-action-btn {
|
||||
padding: 0.6rem;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.item-action-btn.use-btn {
|
||||
@@ -3110,9 +3088,9 @@ body.no-scroll {
|
||||
width: 80px;
|
||||
height: 56px;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
margin-right: 1rem;
|
||||
flex-shrink: 0;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.entity-image img {
|
||||
@@ -3140,12 +3118,12 @@ body.no-scroll {
|
||||
.combat-modal {
|
||||
background: linear-gradient(135deg, #1a1a2e, #16213e);
|
||||
border: 2px solid rgba(107, 185, 240, 0.3);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
max-width: 600px;
|
||||
width: 90%;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
||||
animation: slideUp 0.3s;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.combat-header {
|
||||
@@ -3169,16 +3147,16 @@ body.no-scroll {
|
||||
padding: 1.5rem;
|
||||
background: rgba(244, 67, 54, 0.1);
|
||||
border: 2px solid rgba(244, 67, 54, 0.3);
|
||||
border-radius: 12px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-enemy-image-container {
|
||||
width: 200px;
|
||||
height: 140px;
|
||||
flex-shrink: 0;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-enemy-image {
|
||||
@@ -3211,9 +3189,9 @@ body.no-scroll {
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(244, 67, 54, 0.4);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-hp-fill {
|
||||
@@ -3228,10 +3206,10 @@ body.no-scroll {
|
||||
padding: 1rem;
|
||||
background: rgba(107, 185, 240, 0.1);
|
||||
border-left: 4px solid #6bb9f0;
|
||||
border-radius: 8px;
|
||||
min-height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-log p {
|
||||
@@ -3264,11 +3242,11 @@ body.no-scroll {
|
||||
font-size: 1.1rem;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-action-btn:disabled {
|
||||
@@ -3340,8 +3318,8 @@ body.no-scroll {
|
||||
padding: 2rem;
|
||||
background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(139, 0, 0, 0.1));
|
||||
border: 2px solid rgba(244, 67, 54, 0.5);
|
||||
border-radius: 12px;
|
||||
animation: slideUp 0.3s ease-out;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.combat-header-inline {
|
||||
@@ -3367,10 +3345,10 @@ body.no-scroll {
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
aspect-ratio: 10 / 7;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 3px solid rgba(244, 67, 54, 0.5);
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.combat-enemy-image-large img {
|
||||
@@ -3427,11 +3405,11 @@ body.no-scroll {
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
background: rgba(20, 20, 20, 0.8);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
border: 2px solid rgba(255, 100, 100, 0.6);
|
||||
position: relative;
|
||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-hp-fill-inline {
|
||||
@@ -3454,13 +3432,13 @@ body.no-scroll {
|
||||
.combat-log-inline {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 2px solid rgba(244, 67, 54, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
min-height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-log-inline p {
|
||||
@@ -3475,13 +3453,13 @@ body.no-scroll {
|
||||
font-size: 1.3rem;
|
||||
font-weight: bold;
|
||||
padding: 0.75rem;
|
||||
border-radius: 8px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 2px solid transparent;
|
||||
min-height: 3rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
/* Apply pulsing animation when it's enemy's turn processing */
|
||||
@@ -3533,11 +3511,11 @@ body.no-scroll {
|
||||
margin-top: 2rem;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 2px solid rgba(244, 67, 54, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-log-container h4 {
|
||||
@@ -3563,13 +3541,13 @@ body.no-scroll {
|
||||
padding: 0.75rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border-left: 3px solid rgba(244, 67, 54, 0.5);
|
||||
border-radius: 4px;
|
||||
line-height: 1.5;
|
||||
font-size: 0.95rem;
|
||||
animation: fadeInLog 0.3s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.combat-log-entry.player-action {
|
||||
@@ -3671,7 +3649,6 @@ body.no-scroll {
|
||||
.location-description-box {
|
||||
background: rgba(25, 26, 31, 0.6);
|
||||
border: 1px solid rgba(107, 185, 240, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: 1rem;
|
||||
margin-top: 1rem;
|
||||
width: 100%;
|
||||
@@ -3679,6 +3656,7 @@ body.no-scroll {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
box-sizing: border-box;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.location-description {
|
||||
@@ -3751,13 +3729,13 @@ body.no-scroll {
|
||||
background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
|
||||
color: white;
|
||||
border: 1px solid rgba(255, 68, 68, 0.5);
|
||||
border-radius: 6px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.pvp-btn:hover {
|
||||
@@ -3795,14 +3773,31 @@ body.no-scroll {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.open-inventory-btn {
|
||||
width: 100%;
|
||||
padding: 0.5rem 1rem;
|
||||
border: none;
|
||||
background: rgba(22, 33, 62, 0.3);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 0.9rem;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
}
|
||||
|
||||
.open-inventory-btn:hover {
|
||||
background: rgba(107, 185, 240, 0.2);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.pvp-player-card {
|
||||
background: rgba(30, 30, 40, 0.8);
|
||||
border: 2px solid rgba(255, 107, 107, 0.4);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
min-width: 280px;
|
||||
flex: 1;
|
||||
max-width: 400px;
|
||||
clip-path: var(--game-clip-path);
|
||||
}
|
||||
|
||||
.pvp-player-card.your-card {
|
||||
@@ -4318,8 +4313,7 @@ body.no-scroll {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
min-height: 220px;
|
||||
/* Reserve space for grid to prevent layout shift */
|
||||
/* min-height removed to fit content */
|
||||
justify-content: center;
|
||||
/* Center content vertically */
|
||||
}
|
||||
@@ -4330,7 +4324,7 @@ body.no-scroll {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.combat-actions-group .btn {
|
||||
.combat-actions .btn {
|
||||
padding: 1rem;
|
||||
font-size: 1.1rem;
|
||||
display: flex;
|
||||
@@ -4398,7 +4392,7 @@ body.no-scroll {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
position: relative;
|
||||
border-radius: 6px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
overflow: visible;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
@@ -4505,7 +4499,7 @@ body.no-scroll {
|
||||
gap: 2px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
clip-path: var(--game-clip-path-sm);
|
||||
border: 1px solid rgba(72, 187, 120, 0.4);
|
||||
/* Green border */
|
||||
align-items: center;
|
||||
@@ -4519,7 +4513,6 @@ body.no-scroll {
|
||||
padding: 0.3rem 0.6rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
@@ -4539,4 +4532,33 @@ body.no-scroll {
|
||||
|
||||
.action-btn.pickup.single:hover {
|
||||
background: rgba(72, 187, 120, 0.2);
|
||||
}
|
||||
|
||||
@keyframes shake {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
25% {
|
||||
transform: translateX(-5px);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: translateX(5px);
|
||||
}
|
||||
|
||||
75% {
|
||||
transform: translateX(-5px);
|
||||
}
|
||||
}
|
||||
|
||||
.shake {
|
||||
animation: shake 0.5s ease-in-out !important;
|
||||
border-color: #ff4444 !important;
|
||||
box-shadow: 0 0 10px rgba(255, 68, 68, 0.5) !important;
|
||||
display: flex !important;
|
||||
/* Ensure it stays flex */
|
||||
transform-origin: center;
|
||||
}
|
||||
Reference in New Issue
Block a user