*, *::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: 800px; margin: 0 auto; padding: 1rem; } .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; } .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 1fr; gap: 1rem; } @media (max-width: 600px) { .main-content { grid-template-columns: 1fr; } } .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; } } /* ===== 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); } }