/* Inventory Manager CSS - Extracted from styles.css */

/* Inventory List Styles */
.inventory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Inventory Item Styles */
.inventory-item {
    position: relative;
    border: 1px solid #ddd;
    padding: 2px;
    margin: 1px 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

/* Sync indicator (equipment header) */
.sync-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background-color: #4ade80; /* green */
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    vertical-align: middle;
}

.sync-indicator.flash {
    opacity: 1;
    transform: scale(1);
}

/* Item level and equippability states */
.inventory-item.level-too-high {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
}

.inventory-item.level-too-high:hover {
    background-color: #ffeaea !important;
}

.inventory-item.unequippable {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
    cursor: not-allowed;
}

.inventory-item.unequippable:hover {
    background-color: #ffeaea !important;
}

/* Item content and icon styles */
.item-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.item-icon {
    flex-shrink: 0;
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

/* Equipped indicator */
.equipped-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #28a745;
    color: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    z-index: 10;
    border: 1px solid white;
}

/* Item quantity display */
.item-quantity {
    position: absolute;
    bottom: -1px;
    right: -1px;
    font-size: 7px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 0px 1px;
    border-radius: 4px;
    width: 8px;
    height: 8px;
    text-align: center;
    line-height: 7px;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid white;
}

/* Hide stats and meta for inventory items */
.inventory-item .item-stats,
.inventory-item .item-meta {
    display: none;
}

/* FlutterWrest Item Tooltips */
.flut-item-tooltip {
    pointer-events: none;
    user-select: none;
    max-width: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    z-index: 9999;
}

/* Compare mode: allow wider layout */
.flut-item-tooltip.compare {
    max-width: none;
}

.flut-tooltip-compare {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.flut-tooltip-compare .flut-tooltip-content {
    min-width: 260px;
    max-width: 320px;
}

.flut-compare-wrapper {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.flut-compare-card {
    background: linear-gradient(145deg, rgba(24, 24, 30, 0.95), rgba(42, 42, 52, 0.95));
    border: 2px solid #666;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    padding: 14px 18px;
    min-width: 240px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.flut-compare-card.rarity-common { border-color: #9d9d9d; }
.flut-compare-card.rarity-uncommon { border-color: #1eff00; }
.flut-compare-card.rarity-rare { border-color: #0070ff; }
.flut-compare-card.rarity-epic { border-color: #a335ee; }
.flut-compare-card.rarity-legendary { border-color: #ff8000; }

.flut-compare-card-label {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.flut-compare-item-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.flut-compare-card.rarity-common .flut-compare-item-name { color: #ffcc00; }
.flut-compare-card.rarity-uncommon .flut-compare-item-name { color: #1eff00; }
.flut-compare-card.rarity-rare .flut-compare-item-name { color: #4aa5ff; }
.flut-compare-card.rarity-epic .flut-compare-item-name { color: #a77bff; }
.flut-compare-card.rarity-legendary .flut-compare-item-name { color: #ff9c3a; }

.flut-compare-item-type {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.flut-compare-stats {
    margin-top: 6px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flut-compare-stat-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #f5f5f5;
}

.flut-compare-stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    flex: 1;
}

.flut-compare-stat-values {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.flut-compare-stat-value {
    white-space: nowrap;
}

.flut-compare-diff {
    font-weight: 600;
    font-size: 12px;
}

.flut-compare-diff.positive { color: #4ade80; }
.flut-compare-diff.negative { color: #f87171; }
.flut-compare-diff.neutral { color: rgba(255, 255, 255, 0.6); }

.flut-compare-section {
    margin-top: 10px;
}

.flut-compare-section-title {
    color: #ffcc00;
    font-size: 11px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flut-compare-section .flut-stat {
    margin: 1px 0;
}

.flut-compare-sell {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.flut-tooltip-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #666;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 0;
    position: relative;
}

/* Rarity-based borders */
.flut-tooltip-content.rarity-common { border-color: #9d9d9d; }
.flut-tooltip-content.rarity-uncommon { border-color: #1eff00; }
.flut-tooltip-content.rarity-rare { border-color: #0070ff; }
.flut-tooltip-content.rarity-epic { border-color: #a335ee; }
.flut-tooltip-content.rarity-legendary { border-color: #ff8000; }

.flut-tooltip-header {
    padding: 8px 12px 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flut-item-name {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

/* Rarity-based name colors */
.flut-tooltip-content.rarity-common .flut-item-name { color: #ffcc00; }
.flut-tooltip-content.rarity-uncommon .flut-item-name { color: #1eff00; }
.flut-tooltip-content.rarity-rare .flut-item-name { color: #0070ff; }
.flut-tooltip-content.rarity-epic .flut-item-name { color: #a335ee; }
.flut-tooltip-content.rarity-legendary .flut-item-name { color: #ff8000; }

.flut-item-type {
    font-size: 11px;
    color: #cccccc;
    text-transform: capitalize;
}

.flut-equipped-indicator {
    font-size: 10px;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

.flut-tooltip-body {
    padding: 4px 12px 8px 12px;
}

.flut-binding {
    color: #ffcc00;
    font-size: 11px;
    margin-bottom: 4px;
    font-style: italic;
}

.flut-level-req {
    color: #dddddd;
    font-size: 11px;
    margin-bottom: 4px;
}

.flut-level-req.unmet { color: #ff6b6b; }

.flut-armor-type {
    color: #dddddd;
    font-size: 11px;
    margin-bottom: 4px;
}

.flut-armor-type.unmet { color: #ff6b6b; }

.flut-stat {
    color: #ffffff;
    font-size: 12px;
    margin: 2px 0;
    white-space: nowrap;
}

.flut-description {
    color: #cccccc;
    font-size: 11px;
    font-style: italic;
    margin: 6px 0;
    line-height: 1.3;
}

/* Section label for enchantments/affixes */
.flut-section {
    color: #ffcc00;
    font-size: 11px;
    margin-top: 6px;
    margin-bottom: 2px;
}

.flut-sell-price {
    color: #ffffcc;
    font-size: 11px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4px;
}

/* Tooltip animations */
.flut-item-tooltip {
    animation: tooltipFadeIn 0.15s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Inventory Styles */
.inventory-section {
    margin-top: 30px;
}

.inventory-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.inventory-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inventory-sorting label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 180px;
}

.sort-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.sort-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.sort-select option {
    background: #2d3748;
    color: white;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 4px;
    margin-top: 20px;
}

/* Rarity-based tinting */
.inventory-item.rarity-common {
    border-color: rgba(157, 157, 157, 0.6);
    background: rgba(157, 157, 157, 0.1);
}

.inventory-item.rarity-uncommon {
    border-color: rgba(30, 255, 0, 0.6);
    background: rgba(30, 255, 0, 0.1);
}

.inventory-item.rarity-rare {
    border-color: rgba(0, 112, 221, 0.6);
    background: rgba(0, 112, 221, 0.1);
}

.inventory-item.rarity-epic {
    border-color: rgba(163, 53, 238, 0.6);
    background: rgba(163, 53, 238, 0.1);
}

.inventory-item.rarity-legendary {
    border-color: rgba(255, 128, 0, 0.6);
    background: rgba(255, 128, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.item-name {
    font-weight: bold;
    font-size: 18px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    flex: 1;
    margin-right: 10px;
}

.item-quantity {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.item-stats {
    margin-bottom: 15px;
}

.stat {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 5px;
    padding: 2px 0;
}

.stat:last-child {
    margin-bottom: 0;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.item-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.item-rarity {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.item-rarity.common { color: #9d9d9d; }
.item-rarity.uncommon { color: #1eff00; }
.item-rarity.rare { color: #0070dd; }
.item-rarity.epic { color: #a335ee; }
.item-rarity.legendary { color: #ff8000; }

.no-items {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sell functionality styles */
.inventory-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sell-btn, .confirm-sell-btn, .cancel-sell-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
}

.sell-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.confirm-sell-btn {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.confirm-sell-btn:hover {
    background: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

.cancel-sell-btn {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.cancel-sell-btn:hover {
    background: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* Stack button */
.stack-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
}

.stack-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stack-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Selection mode styles */
.inventory-item.selected {
    border: 2px solid #fbbf24 !important;
    background: rgba(251, 191, 36, 0.2) !important;
    transform: scale(1.05);
}

/* Non-selectable items in selection mode */
.inventory-item.non-selectable {
    opacity: 0.5;
    cursor: not-allowed;
}

.inventory-item.non-selectable:hover {
    transform: none;
}

/* Quantity controls for stackable items */
.quantity-controls {
    position: absolute;
    bottom: 2px;
    left: 2px;
    display: flex;
    gap: 2px;
    z-index: 10;
}

.quantity-indicator, .all-indicator {
    width: 12px;
    height: 12px;
    background: rgba(251, 191, 36, 0.9);
    color: #1a1a1a;
    border-radius: 50%;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.3);
    z-index: 11;
    min-width: 12px;
    padding: 0 1px;
}

.quantity-indicator:hover, .all-indicator:hover {
    background: rgba(251, 191, 36, 1);
    transform: scale(1.1);
}

.all-indicator {
    background: rgba(251, 191, 36, 0.9);
    color: #1a1a1a;
}

.all-indicator:hover {
    background: rgba(251, 191, 36, 1);
}

/* Sell confirmation overlay */
.sell-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sell-confirmation-modal {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sell-confirmation-modal h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.sell-confirmation-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.selected-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-item:last-child {
    border-bottom: none;
}

.item-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.selected-item .item-name {
    flex: 1;
    color: white;
    font-weight: 500;
}

.sell-confirmation-modal .selected-item .item-quantity {
    color: white !important;
    font-size: 0.8rem !important;
    position: static !important;
    display: inline-block !important;
    margin: 0 4px !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.quantity-controls-confirmation {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.quantity-controls-confirmation.readonly {
    gap: 6px;
    justify-content: flex-end;
}

.quantity-controls-confirmation.readonly .item-quantity {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.qty-arrow {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.qty-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.4);
}

.qty-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.warning {
    color: #dc2626 !important;
    font-weight: 600;
    text-align: center;
    margin: 20px 0 !important;
}

.total-gold-section {
    text-align: right;
    margin: 20px 0;
}

.total-gold {
    font-weight: bold;
    font-size: 1.1rem;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.confirm-yes-btn, .confirm-no-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 80px;
}

.confirm-yes-btn {
    background: #dc2626;
    color: white;
}

.confirm-yes-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.confirm-no-btn {
    background: #6b7280;
    color: white;
}

.confirm-no-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Loading overlay for inventory refresh */
.inv-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.03);
}

.loading-indicator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* Inventory error message */
.inventory-error-message {
    margin-bottom: 15px;
}

.error-close-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    line-height: 1;
}

.error-close-btn:hover {
    color: #b91c1c;
}

/* Inventory header */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sync-tick {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sync-tick.flash {
    opacity: 1;
    transform: scale(1);
}

/* Inventory display container */
.inventory-display {
    width: 100%;
}

/* Clickable inventory items */
.inventory-item.clickable:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Equipped items highlighting */
.inventory-item.equipped {
    border-color: #28a745 !important;
    border-width: 2px !important;
}

/* stop the old styles */
.inventory-item.level-too-high,
.inventory-item.unequippable {
  border-color: inherit !important;
  border-width: 1px !important;
  background: transparent !important;
}

/* stop the old hover bg too */
.inventory-item.level-too-high:hover,
.inventory-item.unequippable:hover {
  background: transparent !important;
}

/* red tint on the icon only */
.inventory-item.level-too-high .item-icon::after,
.inventory-item.unequippable .item-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: rgba(220, 53, 69, 0.35); /* Bootstrap danger-ish, tweak alpha to taste */
  pointer-events: none;
  z-index: 2;
  /* optional: make the tint interact with icon colors a bit more */
  /* mix-blend-mode: multiply; */
}

/* slightly stronger tint on hover (optional) */
.inventory-item.level-too-high:hover .item-icon::after,
.inventory-item.unequippable:hover .item-icon::after {
  background: rgba(220, 53, 69, 0.5);
}

/* Rarity color definitions */
.rarity-common { color: #9d9d9d; }
.rarity-uncommon { color: #1eff00; }
.rarity-rare { color: #0070dd; }
.rarity-epic { color: #a335ee; }
.rarity-legendary { color: #ff8000; }
