1158 lines
20 KiB
CSS
1158 lines
20 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
background: #1a1a2e;
|
|
color: #e0e0e0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.auth-container {
|
|
background: #16213e;
|
|
padding: 2rem 2.5rem;
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
max-width: 360px;
|
|
}
|
|
|
|
h1 { text-align: center; color: #e94560; margin-bottom: 0.25rem; }
|
|
h2 { text-align: center; color: #a0a0a0; font-weight: 400; margin-bottom: 1.5rem; }
|
|
|
|
label {
|
|
display: block;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.25rem;
|
|
font-size: 0.875rem;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
background: #0f3460;
|
|
color: #e0e0e0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
input:focus { outline: none; border-color: #e94560; }
|
|
|
|
button {
|
|
width: 100%;
|
|
margin-top: 1.25rem;
|
|
padding: 0.625rem;
|
|
background: #e94560;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover { background: #c73650; }
|
|
|
|
.error {
|
|
background: #5c1111;
|
|
color: #ff8888;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.redirect {
|
|
text-align: center;
|
|
margin-top: 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.redirect a { color: #e94560; }
|
|
|
|
/* Game dashboard layout */
|
|
.game-container {
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
padding-bottom: 5rem; /* space for mobile bottom nav */
|
|
}
|
|
|
|
.top-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
background: #16213e;
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.logo { color: #e94560; font-size: 1.25rem; font-weight: bold; }
|
|
|
|
.nav-links { display: flex; align-items: center; gap: 1rem; }
|
|
.nav-links a {
|
|
color: #a0a0a0;
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
}
|
|
.nav-links a:hover { color: #e94560; }
|
|
|
|
.user-info { display: flex; align-items: center; gap: 1rem; }
|
|
.user-info span { color: #a0a0a0; }
|
|
.user-info a { color: #e94560; text-decoration: none; }
|
|
|
|
.main-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.5fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.main-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.game-container {
|
|
padding-bottom: 5rem;
|
|
}
|
|
}
|
|
|
|
/* Hide desktop tabs on mobile */
|
|
@media (max-width: 700px) {
|
|
#action-panel > .tabs {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.panel {
|
|
background: #16213e;
|
|
padding: 1.25rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.panel h3 {
|
|
color: #e94560;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.25rem 0;
|
|
border-bottom: 1px solid #1a1a2e;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.stat-row .label { color: #a0a0a0; }
|
|
|
|
.stat-row.derived {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-top: 0.5rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid #333;
|
|
color: #88cc88;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
color: #a0a0a0;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.placeholder {
|
|
color: #666;
|
|
font-size: 0.875rem;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
/* Energy bar */
|
|
.energy-bar-container {
|
|
width: 100%;
|
|
height: 12px;
|
|
background: #0f3460;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.energy-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #4a90d9, #67b8f7);
|
|
border-radius: 6px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.energy-timer {
|
|
font-size: 0.75rem;
|
|
color: #666;
|
|
margin-top: 0.25rem;
|
|
text-align: right;
|
|
}
|
|
|
|
/* ===== Zone cards ===== */
|
|
.zone-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.zone-card {
|
|
background: #0f3460;
|
|
border: 1px solid #333;
|
|
border-radius: 6px;
|
|
padding: 0.75rem 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.zone-card .zone-name {
|
|
font-weight: bold;
|
|
color: #e94560;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.zone-card .zone-desc {
|
|
font-size: 0.8rem;
|
|
color: #a0a0a0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.zone-card .zone-meta {
|
|
font-size: 0.75rem;
|
|
color: #666;
|
|
}
|
|
|
|
.zone-card .zone-locked-msg {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
.btn-hunt {
|
|
margin-top: 0.5rem;
|
|
background: #e94560;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.btn-hunt:hover:not(:disabled) {
|
|
background: #c73650;
|
|
}
|
|
|
|
.btn-hunt:disabled {
|
|
background: #444;
|
|
color: #888;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ===== Combat log ===== */
|
|
.combat-log-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.log-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.35rem 0.5rem;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.log-result {
|
|
font-weight: bold;
|
|
font-size: 0.9rem;
|
|
min-width: 1.2em;
|
|
text-align: center;
|
|
}
|
|
|
|
.log-result.win {
|
|
color: #4f9d69;
|
|
}
|
|
|
|
.log-result.loss {
|
|
color: #c0392b;
|
|
}
|
|
|
|
.log-text {
|
|
color: #eadfce;
|
|
}
|
|
|
|
/* ===== Result panel ===== */
|
|
.result-panel {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.result-panel h3 {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.result-panel p {
|
|
font-size: 0.875rem;
|
|
padding: 0.2rem 0;
|
|
color: #eadfce;
|
|
}
|
|
|
|
/* ===== Tabs ===== */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--border, #3a2f27);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.tab {
|
|
padding: 0.5rem 1.25rem;
|
|
background: transparent;
|
|
color: var(--muted, #a59a8a);
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--text, #eadfce);
|
|
}
|
|
|
|
.tab.active {
|
|
color: var(--accent, #e2822b);
|
|
border-bottom-color: var(--accent, #e2822b);
|
|
}
|
|
|
|
/* ===== Inventory layout ===== */
|
|
.inventory-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.5fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.inventory-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ===== Stat rows (mobile: stack name/value) ===== */
|
|
@media (max-width: 700px) {
|
|
.stat-row > .label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
text-align: left;
|
|
}
|
|
.stat-row > .label:last-child {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
/* ===== Equipment panel ===== */
|
|
.equipment-panel h4 {
|
|
color: var(--accent, #e2822b);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.equipment-slots {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.equip-slot {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.4rem 0.6rem;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
position: relative;
|
|
}
|
|
|
|
.slot-label {
|
|
color: var(--muted, #a59a8a);
|
|
text-transform: capitalize;
|
|
min-width: 2.5em;
|
|
}
|
|
|
|
.slot-item {
|
|
flex: 1;
|
|
text-align: right;
|
|
}
|
|
|
|
.slot-item .item-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.slot-item .item-stats {
|
|
font-size: 0.7rem;
|
|
color: var(--muted, #a59a8a);
|
|
}
|
|
|
|
.btn-unequip {
|
|
background: transparent;
|
|
color: var(--danger, #c0392b);
|
|
border: 1px solid var(--danger, #c0392b);
|
|
padding: 0.15rem 0.5rem;
|
|
font-size: 0.7rem;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.btn-unequip:hover {
|
|
background: var(--danger, #c0392b);
|
|
color: #fff;
|
|
}
|
|
|
|
.slot-empty {
|
|
color: var(--muted, #a59a8a);
|
|
font-style: italic;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* ===== Inventory grid ===== */
|
|
.inventory-grid-panel h4 {
|
|
color: var(--accent, #e2822b);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.inventory-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
gap: 0.5rem;
|
|
max-height: 320px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.inv-item {
|
|
background: #0f3460;
|
|
border: 1px solid var(--border, #3a2f27);
|
|
border-radius: 4px;
|
|
padding: 0.5rem;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.inv-item:hover {
|
|
border-color: var(--accent, #e2822b);
|
|
}
|
|
|
|
.inv-item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.inv-item-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.inv-item-name {
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
flex: 1;
|
|
text-align: right;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.inv-item-rarity {
|
|
font-size: 0.65rem;
|
|
padding: 0.1rem 0.35rem;
|
|
border-radius: 3px;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.inv-item-stats {
|
|
font-size: 0.7rem;
|
|
color: var(--success, #4f9d69);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.inv-item-type {
|
|
font-size: 0.65rem;
|
|
color: var(--muted, #a59a8a);
|
|
margin-top: 0.15rem;
|
|
}
|
|
|
|
.inv-item-qty {
|
|
position: absolute;
|
|
bottom: 0.3rem;
|
|
right: 0.4rem;
|
|
font-size: 0.7rem;
|
|
color: var(--muted, #a59a8a);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Rarity colors */
|
|
.rarity-common { color: #b8b0a3; }
|
|
.rarity-uncommon { color: #5fb36b; }
|
|
.rarity-rare { color: #4a8fe0; }
|
|
.rarity-epic { color: #a45ee0; }
|
|
.rarity-legendary { color: #f2a23a; }
|
|
|
|
.bg-rarity-common { background: rgba(184, 176, 163, 0.2); color: #b8b0a3; }
|
|
.bg-rarity-uncommon { background: rgba(95, 179, 107, 0.2); color: #5fb36b; }
|
|
.bg-rarity-rare { background: rgba(74, 143, 224, 0.2); color: #4a8fe0; }
|
|
.bg-rarity-epic { background: rgba(164, 94, 224, 0.2); color: #a45ee0; }
|
|
.bg-rarity-legendary { background: rgba(242, 162, 58, 0.2); color: #f2a23a; }
|
|
|
|
/* ===== Tooltip ===== */
|
|
.inv-item .tooltip {
|
|
display: none;
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: #1a1a2e;
|
|
border: 1px solid var(--border, #3a2f27);
|
|
border-radius: 6px;
|
|
padding: 0.6rem 0.75rem;
|
|
min-width: 170px;
|
|
max-width: 220px;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.inv-item:hover .tooltip {
|
|
display: block;
|
|
}
|
|
|
|
.tooltip-name {
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 0.15rem;
|
|
}
|
|
|
|
.tooltip-type {
|
|
font-size: 0.7rem;
|
|
color: var(--muted, #a59a8a);
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.tooltip-stats {
|
|
font-size: 0.75rem;
|
|
color: var(--success, #4f9d69);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tooltip-effect {
|
|
font-size: 0.75rem;
|
|
color: var(--accent, #e2822b);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.tooltip-level {
|
|
font-size: 0.7rem;
|
|
color: var(--muted, #a59a8a);
|
|
margin-top: 0.2rem;
|
|
}
|
|
|
|
/* ===== Toast notifications ===== */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 1.5rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 0.75rem 1.25rem;
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
color: #fff;
|
|
z-index: 1000;
|
|
animation: toastIn 0.3s ease;
|
|
max-width: 90vw;
|
|
text-align: center;
|
|
}
|
|
|
|
.toast-error {
|
|
background: #c0392b;
|
|
}
|
|
|
|
.toast-info {
|
|
background: #4a7fb0;
|
|
}
|
|
|
|
@keyframes toastIn {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
/* ===== Expedition UI ===== */
|
|
.expedition-def-card {
|
|
background: #16213e;
|
|
border: 1px solid #0f3460;
|
|
border-radius: 6px;
|
|
padding: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.expedition-active-card {
|
|
background: #16213e;
|
|
border: 1px solid #0f3460;
|
|
border-radius: 6px;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.expedition-name {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #e94560;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.expedition-desc {
|
|
font-size: 0.875rem;
|
|
color: #a0a0a0;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.expedition-info {
|
|
font-size: 0.8rem;
|
|
color: #888;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.expedition-rewards {
|
|
font-size: 0.8rem;
|
|
color: #c9a538;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.expedition-rewards-preview {
|
|
font-size: 0.85rem;
|
|
color: #c9a538;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.expedition-progress {
|
|
margin: 0.75rem 0;
|
|
}
|
|
|
|
.expedition-progress-bar {
|
|
width: 100%;
|
|
height: 12px;
|
|
background: #0f3460;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.expedition-progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #e94560, #c23152);
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.expedition-progress-text {
|
|
font-size: 0.8rem;
|
|
color: #a0a0a0;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.btn-expedition {
|
|
background: #e94560;
|
|
border: none;
|
|
color: #fff;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.btn-expedition:hover {
|
|
background: #c23152;
|
|
}
|
|
|
|
.btn-expedition:disabled {
|
|
background: #555;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ===== Mobile bottom navigation ===== */
|
|
.mobile-bottom-nav {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #16213e;
|
|
border-top: 1px solid #333;
|
|
z-index: 100;
|
|
padding: 0.25rem 0.5rem;
|
|
padding-bottom: env(safe-area-inset-bottom, 0.25rem);
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.mobile-bottom-nav {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.mobile-bottom-nav .tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 0.5rem 0.25rem;
|
|
font-size: 0.75rem;
|
|
border-bottom: 2px solid transparent;
|
|
border-radius: 0;
|
|
color: var(--muted, #a59a8a);
|
|
}
|
|
|
|
.mobile-bottom-nav .tab.active {
|
|
color: var(--accent, #e2822b);
|
|
border-bottom-color: var(--accent, #e2822b);
|
|
}
|
|
|
|
/* ===== Profile page ===== */
|
|
.profile-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.25rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.profile-header h2 {
|
|
color: #e94560;
|
|
font-size: 1.5rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.profile-class-badge {
|
|
font-size: 0.875rem;
|
|
color: #a0a0a0;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.profile-level-badge {
|
|
font-size: 0.875rem;
|
|
color: #f2c14e;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.profile-summary {
|
|
display: flex;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1.25rem;
|
|
padding: 0.75rem;
|
|
background: #0f3460;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.summary-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.summary-label {
|
|
font-size: 0.7rem;
|
|
color: #a0a0a0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.summary-value {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #eadfce;
|
|
}
|
|
|
|
.gold-value {
|
|
color: #f2c14e;
|
|
}
|
|
|
|
.profile-body {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.profile-body {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.profile-stats h3,
|
|
.profile-equipment h3 {
|
|
color: #e94560;
|
|
font-size: 0.95rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.profile-stat-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.35rem 0.5rem;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
margin-bottom: 0.35rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.profile-stat-label {
|
|
color: #a0a0a0;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.profile-stat-value {
|
|
font-weight: 600;
|
|
color: #eadfce;
|
|
}
|
|
|
|
.profile-equip-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.profile-equip-slot {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.5rem 0.75rem;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.profile-slot-label {
|
|
color: #a0a0a0;
|
|
text-transform: capitalize;
|
|
min-width: 3.5em;
|
|
}
|
|
|
|
.profile-slot-item {
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.profile-slot-empty {
|
|
color: #666;
|
|
font-style: italic;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* ===== Loading spinner ===== */
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
border: 2px solid var(--muted, #a59a8a);
|
|
border-top-color: var(--accent, #e2822b);
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Loading overlay for panels */
|
|
.loading-overlay {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
padding: 2rem;
|
|
color: var(--muted, #a59a8a);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.loading-overlay .spinner {
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
}
|
|
|
|
/* ===== Toast notifications ===== */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 1.5rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 0.75rem 1.25rem;
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
color: #fff;
|
|
z-index: 1000;
|
|
animation: toastIn 0.3s ease;
|
|
max-width: 90vw;
|
|
text-align: center;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast-error {
|
|
background: #c0392b;
|
|
}
|
|
|
|
.toast-info {
|
|
background: #4a7fb0;
|
|
}
|
|
|
|
.toast-success {
|
|
background: #4f9d69;
|
|
}
|
|
|
|
@keyframes toastIn {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
/* ===== Button loading state ===== */
|
|
.btn[disabled] {
|
|
opacity: 0.65;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-loading {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-loading .spinner {
|
|
width: 0.875rem;
|
|
height: 0.875rem;
|
|
border-width: 1.5px;
|
|
}
|
|
|
|
/* ===== Error page shared ===== */
|
|
.error-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 60vh;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.error-code {
|
|
font-size: 6rem;
|
|
font-weight: bold;
|
|
color: var(--accent, #e2822b);
|
|
line-height: 1;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.error-title {
|
|
font-size: 1.5rem;
|
|
color: var(--text, #eadfce);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.error-message {
|
|
font-size: 1rem;
|
|
color: var(--muted, #a59a8a);
|
|
margin-bottom: 2rem;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.error-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.error-actions a,
|
|
.error-actions button {
|
|
display: inline-block;
|
|
padding: 0.5rem 1.25rem;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
border: none;
|
|
background: transparent;
|
|
color: inherit;
|
|
}
|
|
|
|
.error-actions a:hover,
|
|
.error-actions button:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.btn-home {
|
|
background: var(--accent, #e2822b);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-back {
|
|
color: var(--accent, #e2822b);
|
|
border: 1px solid var(--accent, #e2822b);
|
|
}
|
|
|
|
.btn-retry {
|
|
color: var(--accent, #e2822b);
|
|
border: 1px solid var(--accent, #e2822b);
|
|
}
|
|
|
|
.btn-retry:hover {
|
|
background: var(--accent, #e2822b);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ===== Stat allocation UI ===== */
|
|
#allocation-section {
|
|
margin-top: 0.75rem;
|
|
padding-top: 0.75rem;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
#allocation-section h4 {
|
|
color: #e94560;
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.alloc-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.2rem 0;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.alloc-label {
|
|
color: #a0a0a0;
|
|
min-width: 2.5em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.alloc-value {
|
|
font-weight: 600;
|
|
color: #eadfce;
|
|
min-width: 1.5em;
|
|
text-align: right;
|
|
}
|
|
|
|
.alloc-btn {
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
margin: 0 0.35rem;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #0f3460;
|
|
border: 1px solid #4a7fb0;
|
|
border-radius: 3px;
|
|
color: #4a90d9;
|
|
cursor: pointer;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.alloc-btn:hover:not(:disabled) {
|
|
background: #4a7fb0;
|
|
color: #fff;
|
|
}
|
|
|
|
.alloc-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
border-color: #444;
|
|
color: #666;
|
|
}
|
|
|
|
#alloc-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 0.5rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid #1a1a2e;
|
|
}
|
|
|
|
.alloc-total {
|
|
font-size: 0.8rem;
|
|
color: #a0a0a0;
|
|
}
|
|
|
|
.btn-alloc-apply {
|
|
background: #e94560;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 0.35rem 1rem;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.btn-alloc-apply:hover:not(:disabled) {
|
|
background: #c73650;
|
|
}
|
|
|
|
.btn-alloc-apply:disabled {
|
|
background: #444;
|
|
color: #888;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-rest {
|
|
background: #2a9d8f;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 0.35rem 1rem;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.btn-rest:hover:not(:disabled) {
|
|
background: #21867a;
|
|
}
|
|
|
|
.btn-rest:disabled {
|
|
background: #444;
|
|
color: #888;
|
|
cursor: not-allowed;
|
|
}
|