* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0d0d0d;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.6); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.5s ease forwards;
}

.animate-pulse-custom {
    animation: pulse 2s ease-in-out infinite;
}

.animate-slideIn {
    animation: slideIn 0.3s ease forwards;
}

.animate-glow {
    animation: glow 1.5s ease-in-out infinite;
}

.drag-over {
    border-color: #7c3aed !important;
    background: rgba(124, 58, 237, 0.1) !important;
}

.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    z-index: 1000;
}

.item-card {
    transition: all 0.2s ease;
}

.item-card:hover {
    transform: scale(1.02);
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* Drop indicator line for drag-and-drop reordering */
.drop-indicator-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #7c3aed, #a855f7, #7c3aed, transparent);
    border-radius: 2px;
    position: relative;
    animation: dropPulse 1s ease-in-out infinite;
    margin-top: -2px;
    margin-bottom: -2px;
}

.drop-indicator-line::before,
.drop-indicator-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.8);
}

.drop-indicator-line::before {
    left: -5px;
}

.drop-indicator-line::after {
    right: -5px;
}

@keyframes dropPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(124, 58, 237, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 12px rgba(124, 58, 237, 0.7); }
}

/* Rank slot styling for touch/drag states */
.rank-slot {
    user-select: none;
    -webkit-user-select: none;
}

.rank-slot.touch-active {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    border-color: #7c3aed !important;
    z-index: 100;
}

/* Hold-to-drag visual feedback */
@keyframes holdProgress {
    0% { box-shadow: inset 0 0 0 0 rgba(124, 58, 237, 0); }
    100% { box-shadow: inset 0 0 0 3px rgba(124, 58, 237, 0.6); }
}

.rank-slot.holding {
    animation: holdProgress 2s linear forwards;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

.rank-slot.drag-active {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    border-color: #7c3aed !important;
    z-index: 100;
    background: rgba(124, 58, 237, 0.1) !important;
}

.drag-handle {
    transition: color 0.15s ease, transform 0.15s ease;
}

.drag-handle:hover {
    transform: scale(1.2);
}

.drag-handle:active {
    transform: scale(0.95);
    color: #a855f7;
}

.tier-row {
    transition: all 0.2s ease;
}

.saved-indicator {
    animation: fadeIn 0.3s ease forwards;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}